Hi there
]i am new to C programming and totally lost.
iam trying to convert decimal to binary. here is what i did
please ignore the case h and m. I am trying to get case 'b' to work.
i do not want to use cout and cin. is there any other way to change the last function. please someone help me.
[CODE=c]#include <stdio.h>
#include <time.h>
int main( )
{
char...
User Profile
Collapse
-
converting decimal to binary
-
Thank you so much
that helps me a lot... -
converting month number to month name
I am using a function prototype to convert month number to month name.
basically you ask the compiler to enter int from 1 to 12 and then convert it.
printMonth ( number ); is the prototype and using switch this is what i did
case 'm':
printf( "What month? Enter a number between 1 and 12: " );
scanf( "%d%c", &number, &tmp );
...
No activity results to display
Show More
Leave a comment: