Advertisement
Imran1107048

Asif 5(a)

Nov 4th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int n,sum = 0;
  5. scanf("%d",&n);
  6. do{
  7. n--;
  8. if(n == 3)
  9. continue;
  10. sum += n;
  11. }while(n);
  12. printf("Sum: %d\n", sum);
  13. return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement