PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
4 sec ago
Untitled
4 sec ago
Untitled
25 sec ago
Untitled
39 sec ago
Untitled
30 sec ago
Untitled
34 sec ago
Untitled
36 sec ago
Untitled
41 sec ago
Untitled
By: a guest on
Jun 30th, 2012
| syntax:
None
| size: 0.31 KB | hits: 17 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
int main(void)
{
int num1;
int num2;
int sum;
printf("Enter your numbers: ");
scanf("%d", &num1);
scanf("%d", &num2);
sum = num1 + num2;
printf("The sum is %d", sum);
getch();
}
create a
new version
of this paste
RAW Paste Data
#include <stdio.h> #include <stdlib.h> #include <conio.h> int main(void) { int num1; int num2; int sum; printf("Enter your numbers: "); scanf("%d", &num1); scanf("%d", &num2); sum = num1 + num2; printf("The sum is %d", sum); getch(); }