Write a C program for Addition Of Two Number with using input function
Program:-
#include <stdio.h>
#include <conio.h>
void main()
{
int a, b, c;
clrscr();
printf("Enter the value of two number");
scanf("%d%d",&a,&b);
c=a+b;
printf("%d",c);
getch();
}
Output:-
input:-
Enter the value of two Numbers
a=2
b=3
Enter the value of two Numbers
a=2
b=3
output:-
5
5
0 comments:
Post a Comment