PROGRAM :-
#include<stdio.h>
void main()
{
int a,b,sum;
printf("Enter the value of a: ");
scanf("%d",&a);
printf("\nEnter the value of b: ");
scanf("%d",&b);
sum=a+b;
printf("\nThe addition of a & b is :%d",sum);
}
OUTPUT :-
Enter the value of a: 10
Enter the value of b: 20
The addition of a & b is : 30
Comments
Post a Comment