Advertisement
Karim_Gabr

Untitled

Jun 2nd, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int mark;
  7. int count = 1 ;
  8. int total = 0 ;
  9. while(count < 101)
  10. {
  11. scanf("%d", &mark);
  12. total += mark;
  13. count++;
  14. }
  15. printf("%d", total);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement