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;
- while(counter <= 50){
- sum = sum + counter ;
- counter ++;
- }
- printf("Sum of 1 to 50 is %d", sum);
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement