PROGRAM NO: 1
/*Program to perform formatted output using printf( ) and input
using scanf( ). */
Software Used : Visual Code
Source Code:
#include<stdio.h>
int main(){
int a,b;
printf("\n Enter the first value:");
scanf("%d”, &a);
printf ("\n Enter the second value:");
scanf("%d”, &b);
int sum=a+b;
printf("\n The sum of a and b is %d",sum);
return 0;
}
1
OUTPUT