I need some serious help on this one if any of you lads knows some c language, i'll appreciate it
since i have to hand it over tomorrow :/
I've done the first part of the picture below
however i still need some serious help on the second part
what second part do is,
You enter a number ( for example 7 )
it prints the binary numbers from 0 to 7.
without using loops, everything has to be done using recursion.
my main should look something like this
#include <stdio.h>
int main ()
{
$ /*defining variables*/
printf("Please enter a string:\n");
print_some_chars(*);
******* printf("Please enter an integer:\n");
% /*get input*/
print_binary_number(**);
******** This is the part that i need help with.
return 0;
}
the amount of numbers to be shown is as big as the last binary number ( which is the one you entered )
for example if you enter 3
it prints :
00
01
10
11
however if you enter 255 for example,
it prints :
00000000
00000001
00000010
until
11111111