LPU,NH-1 GT road, Jalandhar rohit.hero12@gmail.com +91-8437503569 https://www.facebook.com/rohit.adhikary3

P-Programming T-Technology A-And TI-Tips C-Cracking

Monday 20 April 2015

Adding Two numbers

Hello Reader,
In this program, i used the simple method to print the two unknown value that user is going to insert it, and by this same method you can try to multiply or divide the two numbers.You can also try for more number.
#include<stdio.h> //standard library input/output
#include<conio.h>
int main() //main module
{
int a,b,ans; //define variables
{
ans=a+b; //sum of two numbers that user want to print as 'a' and 'b'
printf("%d",ans); //display the answer by adding two numbers
}
}

0 comments:

Post a Comment

Popular Posts

Recent Posts

Unordered List

Text Widget

Powered By Blogger
Powered by Blogger.

Contributors