C Program to Addition of two numbers

Description

Get two integer numbers, add both the integers and dispaly the sum.
Sample Input 1:
5 6
Sample Sample Output 1:
11
Input2:
65 4
Output2:
69

Solution

#include<stdio.h>
int main()
{
	int a,b,c;
	scanf("%d %d",&a,&b);
	c=a+b;
	printf("%d",c);
	return  0;
}

Explanation

Get two integers a and b (using scanf statement)
Add a and b, then store the sum in c (c=a+b)
print the value of c (using printf statement)



Interesting Pattern Programs: for more Patterns

Input:
5
Output:
*
**
***
****
*****
****
***
**
*Solution
Input:
5
Output:
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *Solution
Input:
5
Output:
*        *
**      **
***    ***
****  ****
**********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********
**** ****
***   ***
**     **
*       *Solution
Input:
5
Output:
*********
 *******
  *****
   ***
    *
   ***
  *****
 *******
*********Solution