Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- int main(void) {
- int luvut[5];
- int summa = 0;
- int i;
- for(i=0; i<5; i++){
- printf ("Anna %d luku. \n", i+1);
- scanf ("%d", &luvut[i]);
- summa = summa+luvut[i];
- }
- printf ("Lukujen summa: %d", summa);
- getch();
- return 0;
- }
Add Comment
Please, Sign In to add comment