Ads Top

Sum of two numbers using c

 Sum of two numbers using c 

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
printf(“enter a");
scanf(“%d”,&a);
printf(“enter b");
scanf(“%d”,&b);
printf(“SUM = %d\n”, (a+b));
getch();

}

OUTPUT:
enter a
8
enter b
9
SUM=17

No comments:

Touchfeeds. Powered by Blogger.