To Find Sum of 2 numbers in C programs

In todays c program we will be finding sum of 2 given numbers by using c language . 

We will start our program by assuming that 2 numbers are a and b which sum is to be calculated . 
In C program to calculate this we have to ask user for 2 numbers and can easily calculate it . 

Code Breakdown:
int: it accepts integer value 
printf:It is used to print the outcomes
scanf:Its main role is to store variable 











#include<stdio.h>

int main() { int a,b,s;
printf("Enter 2 number "); scanf("%d %d",&a,&b); s=a+b; printf("sum is %d",s); return 0; }
Enter  2 number 55 55
sum is 110