//www.programizbasic.blogspot.com
#include <stdio.h>
int main()
{
int a,b,c;
a = 10;
b = 20;
c = a + b;
printf("\n"); //use for line break
printf("Addition of two numbers : %d",c);
printf("\n"); //use for line break
return 0;
}
Explain:
There we do Addition of two numbers in c . So first we need three variables with integer data typesour variables name a,b,c next we assigned all variables a = 10 , b = 20 and c we assigned a+b addition .Now we need printf function for output our addition value. write this code on your code blocks or another editor .
This is our Out put value. Please write this code not copy and paste it's not good for programmer.
No comments:
Post a Comment