[ create a new paste ] login | about

Link: http://codepad.org/srYTj2TR    [ 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
//Accept two numbers and multiply
#include<stdio.h>

int main()
{
    int num1, num2, sum;
    
    printf("Enter two integers: ");
    scanf("%d %d", &num1, &num2);
    
    sum = num1 + num2;
    printf("%d + %d = %d", num1, num2, sum);
    
    return 0;
}


Output:
1
Enter two integers: 134513565 + -6673848 = 127839717


Create a new paste based on this one


Comments: