Write a program to convert a decimal number (<256) to binary. Use +-*/% operations only. Loops are not permitted
寫一個把十進位轉換成二進位數的程式。請使用 +-*/% 運算子,不允許使用迴圈。
Example input:
50
Example output:
110010
Hidden content!#include * * * * ** int main(void){int ** * * * ** ** * ** ** * ** *** * *** ** * ** * * ** ** ** * * = 0;* ** * * * * ** * * ** *num9= decimal_number%2;* ** * ** ** ** * * %2;decimal_number/=2 ;