[ create a new paste ] login | about

Link: http://codepad.org/uyNJT0j8    [ raw code | output | fork ]

C, pasted on Aug 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<stdio.h>

int main() {
    
    int x,acsum,i;
    acsum=0;
    
    for(i=1 ; i<=8 ; i++) {
        scanf("%d",&x);
        acsum+=x;
    }
    
    printf("La suma de los nĂºmeros anteriores es: %d", acsum);
    return 0;
}


Output:
1
La suma de los nĂºmeros anteriores es: 1076111872


Create a new paste based on this one


Comments: