diff --git a/binaryconv.cpp b/binaryconv.cpp new file mode 100644 index 0000000..2b56d1f --- /dev/null +++ b/binaryconv.cpp @@ -0,0 +1,26 @@ +//TO PRINT ALL THE 32 BITS IN BINARY FOR A DECIMAL NUMBER ENTERED BY USER + +#include +using namespace std; +int main() +{ + int s=31; + int n; + cin>>n; + int num; + + + while(s>=0) + { + + num=1<