|
-
Nov 19th, 2002, 01:43 AM
#1
Thread Starter
Junior Member
How to print binary
when I type a integer this program should give me the binary for that integer printed. I have this so far
--------------------------------------------
#include <stdio.h>
main()
{
int i;
printf ("Please type in your number\n");
scanf ("%d", &i);
print_binary (i);
}
{
void print_binary (int n);
}
------------------------------------------------------------------
thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|