Hey guys i love the community you guys have here !
On to the problem i have a simple little program here it repeats using a do while loop i have a counter in the loop that should be counting and displays that value when the program is stoped.
For some reason the counter is not working what am i doing wrong here is the code.[code] #include #include #include
cnt = 0 ;
Enter a number");
Enter a next number [y] yes or no [no]");
cnt = cnt + 1; // Here is counter //
while ( repeat != 'n');
printf("You ran the program %d",cnt);