Tuesday, July 10, 2018

Sum of Two Number in C

A very simple program to ask the user to give two numbers and then our program will compute the sum of the two numbers using C language.


I am currently accepting programming work, it project, school 

programming projects , thesis and capstone projects, IT consulting 

work, computer tutorials and web development work kindly contact me in the following email address for further details.  If you want to advertise in my website kindly contact me also in my email address also. Thank you.
My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Program Listing.

sum.c


#include <stdio.h> 

main()
 {    

 int sum, n1,n2;     

 printf(“\n Enter two nos.”);   
 scanf(“%d%d”,&n1,&n2);   
 sum=n1+n2;  
 printf(“\n The sum: %d”,sum);  
return 0;
}   

No comments:

Post a Comment