commit b36603c9bb1902f250984cf68bf8905d7b51c3cf
parent 1740cfdb3f8fbfbf2ea9392142aa4925e0ed2769
Author: Martin J. Klöckner <martin.cachari@gmail.com>
Date: Thu, 26 Nov 2020 01:25:27 -0300
Update: removed unnecessary lines and variables;
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/95.11/guia03/ex25_imp.c b/95.11/guia03/ex25_imp.c
@@ -10,7 +10,7 @@
int main ( void ) {
- int i, r, num, aux;
+ int i, num;
char buffer[MAX_LEN];
// 0000 0000
int bin[MAX_LEN] = {0,0,0,0,0,0,0,0};
@@ -30,7 +30,7 @@ int main ( void ) {
// by 2 until its zero, the rest of the division
// is stored in every itineration in bin[];
for(i = 0; num != 0; i++) {
- if((r = (num % 2)) == 1) {
+ if((num % 2) == 1) {
bin[i] = 1;
} else {
bin[i] = 0;