Click here to Upload your own logic for this program.

Adding two numbers Program


Program:


#include<stdio.h> main() { int x=3,y=2,z=0; z=x+y; printf("The sum of the two numbers is: %d", z); }
Output:
		

The sum of the two numbers is: 5


Program:


#include main() { int a=5,b=7; printf("%d",a+b); }
Output:
		

12