Program to add 2 integers ( program to add 2 numbers)
#include<stdio.h>
#include<conio.h>
main()
{
int n,i,sum;
clrscr();
printf("\nEnter two numbers:\t");
scanf("Sum=%d",sum);
getch();
return 0;
}
OUTPUT:
Enter two numbers: 5 6
Sum= 11
#include<stdio.h>
#include<conio.h>
main()
{
int n,i,sum;
clrscr();
printf("\nEnter two numbers:\t");
scanf("Sum=%d",sum);
getch();
return 0;
}
OUTPUT:
Enter two numbers: 5 6
Sum= 11
0 comments:
Post a Comment