What will the output of the following code be if your input is 124?
Code:
#include <stdio.h>
{
int main()
int decimal number;
printf"Enter a Decimal Number: "); scanf("%d", &decimalnum);
int num= 0, temp = 1:
while (decimalnum !=0)
}
num=num + (decimal num % 8) temp: decimal no = decimal no / 8;
temp = temp 10:
}
printf("Converted Number: %d", num):
return 0;
}
Answers
Answered by
3
Answer:
please follow me my dear friend
Similar questions