jharvard@run.cs50.net (~): ./a.out
Please enter a positive decimal value: 45
101101
Write a program that takes a positive decimal value as input and prints out that number in binary notation.
jharvard@run.cs50.net (~): ./a.out
Please enter a positive decimal value: 45
101101
#include <cs50.h> #include <stdio.h> int main (int argc, string argv[]) { }
Convert 10101101 to decimal notation.
Convert 365 to binary notation.
Perform the following calculation in binary. Be sure to show your work (i.e., any 1s carried).