Tuesday, September 29, 2015

While loop

#include <stdio.h>
#include <conio.h>
int main () {
int count=0;
int total=0;
while (count <10)
{
total+=count;
printf("count = %d,total =%d\n",count++,total);
getche();
return 0;
}
}
books (including programming for pc by robert lafore)


No comments:

Post a Comment