Example of C part 15 sum of 2 numbers
We have learn about some basic C programs but now we have do some programs using numbers at his part of C programing I give you program of some of two number
Program
#include<stdio.h>
main()
{
int a,b,c;
printf("enter two number ");
scanf("%d \n %d",&a,&b);
c=a + b;
printf("%d is sum,c");
return 0;
}
Output
Enter two number
5
6
Program
#include<stdio.h>
main()
{
int a,b,c;
printf("enter two number ");
scanf("%d \n %d",&a,&b);
c=a + b;
printf("%d is sum,c");
return 0;
}
Output
Enter two number
5
6
11 is sum