How can I write a program that reads an integer and displays a binary number without using loops, just with binary operators? (Only with basic functions)
#include<stdio.h>
#include<stdint.h>
#include<math.h>
int main()
{uint8_t a;
scanf("%hhd", &a);
//i have read the integer, but I don't know how to go on
return 0;
}
Displays a binary number without using loops, just with binary operators:
Be careful, as the input is integer, I added a
printfOf course, it would be easier with loops :