Addition Program in c Language With Example and .How to Program Will Start Compile and Variable Declare and Data Type . Logic Explain in C Program With Example Output.
Addition : In Computer Programming Language Two Variable are plus ( + ) Operation perform . Call as addition Operation in C program.
Syntax
int main()
{
datatype Variable ;
---------------------;
---------------------;
---------------------;
Logic ;
}
Addition Program in c
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
printf("Enter a value : ");
scanf("%d",&a);
printf("Enter b value : ");
scanf("%d",&b);
c=a+b;
printf ("c value is : %d\n",c);
return 0;
}
Output
Enter a value :5
Enter b value :5
c value is : 10
Like To Without plus ( + ) Operation addition in C Program
Addition : In Computer Programming Language Two Variable are plus ( + ) Operation perform . Call as addition Operation in C program.
Syntax
int main()
{
datatype Variable ;
---------------------;
---------------------;
---------------------;
Logic ;
}
Addition Program in c
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
printf("Enter a value : ");
scanf("%d",&a);
printf("Enter b value : ");
scanf("%d",&b);
c=a+b;
printf ("c value is : %d\n",c);
return 0;
}
Output
Enter a value :5
Enter b value :5
c value is : 10
Like To Without plus ( + ) Operation addition in C Program