Guest User

Untitled

a guest
Jan 23rd, 2018
73
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.  
  3. int main ()
  4. {
  5. int somma,np,n;
  6. printf("Inserisci n");
  7. scanf("%d",&n);
  8. np=1;
  9. for (np =1;np <= n;np++)
  10. {
  11. somma=somma + np;
  12. printf("%d",somma);
  13. }
  14. getchar();getchar();
  15. return 0;
  16. }
Add Comment
Please, Sign In to add comment