[ create a new paste ] login | about

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

godneil - C, pasted on Nov 25:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

int x = 0;
int y = 0;
int z = 0;

int main()
{
    printf("enter x: \n");
    scanf("%d", &x);

    printf("enter y: \n");
    scanf("%d", &y);

    z = x + y;
    printf("Total is %d", z);

return 0;
}


Output:
1
2
3
enter x: 
enter y: 
Total is 0


Create a new paste based on this one


Comments: