No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
[code=c] int sumDigit(int number) { return number < 10 ? number : number%10 + sumDigit(number/10); } [/code] This code can solve your problem..
I think that you should learn C keyword and conditional statement. Then you can think out the pseudocode then I pass to code. you show the menu on the screen as an interface, for example: Hello please enter the ID? Kevin welcome Kevin. Please enter your password? ****** ---MENU--- [W]ithdraw …
You can use game libary, just like Allegro, gtk+. Functions that belong these libary can load image and sound...
[code=syntax] int main() { int i,limit; printf("Enter the Limit: "); scanf("%d", &limit); printf("%10s%10s%10s", "Number","Square","Cube"); for( i = 0; i < limit; ++i ){ printf("%10d%10d%10d\n", i, i*i, i*i*i); } return 0; } [/code] you can write like that if you want to be formatted for your output, you should glance C …
I read your code. It has been very confusing. Firstly your code should be structured, so, all your functions should take parameters. If you want to use on the global scope, it would be hard. Secondly, you have to write one function for one target, For example , you can …
The End.
MustyCE