Sunday, 3 November 2013

C program to add 2 integers ( program to add 2 numbers)

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 

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Lady Gaga, Salman Khan