Add Two Number Program.


	#include<stdio.h>
	#include<conio.h>

	//ADD TWO PROGRAM
	void main()
	{
		int a,b,c;
		clrscr();
	
		printf("ENTER FIRST NUMBER:- ");
		scanf("%d",&a);
		printf("ENTER SECOND NUMBER:- ");
		scanf("%d",&b);

		c = a + b;
		printf("RESULT OF TWO NUMBER IS:- %d",c);

	getch();
	}
    

Output


    ENTER FIRST NUMBER:- 5
    ENTER SECOND NUMBER:- 4
    
    RESULT OF TWO NUMBER IS:- 9

Advertisement here

Share this Page.

Post Your Comment