Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- int somma,np,n;
- printf("Inserisci n");
- scanf("%d",&n);
- np=1;
- for (np =1;np <= n;np++)
- {
- somma=somma + np;
- printf("%d",somma);
- }
- getchar();getchar();
- return 0;
- }
Add Comment
Please, Sign In to add comment