Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(int argc, char *argv[]){
- int j = 10;
- int sum = 0;
- while(j <= 50){
- j = j + 1;
- sum = sum + 1;
- }
- printf("Total number of times the loop ran: %d", sum);
- getchar();
- return 0;
- }
Add Comment
Please, Sign In to add comment