Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main () {
- int sumatotal = 0;
- int multiplicaciontotal = 1;
- int tmp;
- int numeros[10];
- for(int i=0;i<10;i++){
- printf("Dame 1 numero\n");
- scanf("%d",&tmp);
- getchar();
- numeros[i] = tmp;
- }
- for(int i=0;i<10;i++){
- sumatotal += numeros[i];
- multiplicaciontotal *= numeros[i];
- }
- printf("La suma total es %d\n La mult total es %d\n",sumatotal,multiplicaciontotal);
- getchar();
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement