Advertisement
Guest User

mjo

a guest
Nov 24th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main(){
  4. int countEmp = 10;
  5. int sum = 0;
  6. int tal;
  7.  
  8. printf("Skriv in tal: "); scanf("%d", &tal);
  9.  
  10. While(countEmp <= tal){
  11. sum += countEmp;
  12. countEmp = countEmp++;
  13.  
  14. }
  15.  
  16.  
  17. getchar();
  18. getc(stdin);
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement