Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://www.facebook.com/AminproPastebin
- #include <stdio.h>
- int main(void)
- {
- int counter= 0; int sum=0;
- do { sum = sum + counter;
- counter++;
- }
- while
- (counter <=50);
- printf("Sum of 1 to 50 is %d", sum);
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement