Program for addition of two numbers
Output:
Code :-
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
printf("Enter a number:\n");
scanf("%d",&a);
printf("Enter another number:\n");
scanf("%d",&b);
c=a+b;
printf("The Sum is : \n=%d ",c);
return 0;
}
Output:
Code :-
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
printf("Enter a number:\n");
scanf("%d",&a);
printf("Enter another number:\n");
scanf("%d",&b);
c=a+b;
printf("The Sum is : \n=%d ",c);
return 0;
}
0 Comments:
Post a Comment