C program to add Two numbers
Answers
Answered by
0
Answer:
#include <stdio.h>
void main()
{
int i=3,j=7,k; /* Variables Defining and
Assign values */ k=i+j;
printf("sum of two numbers is %d\n", k);
}
#SteVe
Answered by
0
Answer:
#include <stdio.h>
int main()
{
int a,b,c;
printf("enter the two numbers");
scanf("%d%d",&a,&b);
c=a+b;
printf("the sum is=%d",c);
return 0;
}
Output:- Enter the two numbers 5 6
the sum is 11
Similar questions
Environmental Sciences,
6 months ago
Math,
6 months ago
Hindi,
6 months ago
English,
1 year ago
Math,
1 year ago