answersLogoWhite

0


Best Answer

hi,this is jst a simple program to add numbers.i think u wil b satisfied wit ths

#include<stdio.h> //input output header file

#include<conio.h>

main()

{

int a,b,c;

clrscr();

printf("enter any number");

scanf("%d",&a);

printf("enter any number");

scanf("%d",&b);

c=a+b;

printf("%d",c);

getch();

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program to add the two numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program to add two numbers using oop?

#include&lt;iostream.h&gt; #include&lt;conio.h&gt; void main() { int a, b, c; clrscr(); cout&lt;&lt;"enter the two numbers"; cin&gt;&gt;a; cin&gt;b; c=a+b; cout&lt;&lt;"Addition of two numbers="&lt;&lt;c; getch(); }


How do you run c programm with add two numbers?

1. Write the program 2. Compile and link it 3. Execute it by entering its name at command prompt


Write a programme for substraction of two numbers in c language?

substracion of any two number program in c


Is there any benefit in a C plus plus program to add two matrices?

No.


How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


How do you add more than two numbers in C plus plus?

sum = a + b + c;


Write a c program add two polynomial using link list?

GOUDHMARINI


Write a c program to add 2 no without using plus operator?

You can make use of pointers to achieve this.void add( int *a, int *b){(*a) += (*b);}Now if two numbers a and b are given and you need to store the value in variable c, then you would perform:c = a;add(&c,&b);


Write a program in c that prompt user with following lines add two integers test an integer for odd or even and quit?

write a program in C that prompts the user with the following lines: a) Add two integers c) Compare two integers for the larger t) Test an integers for odd or even q) Quit


Addition of two numbers on plsql program?

--THE SUM OF TWO NUMBERS: declare a number(2); b number(2); c number(2); begin a:=&amp;a; b:=&amp;b; c:=a+b; dbms_output.put_line(a ' + 'b' = 'c); end;


How a program in c that will add 2 numbers without using any operator?

Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call


write simple program to solve the following problems : add the following numbers = 10,222,99,999,74,532?

A+(B+C**3) (A-(+D+B/A+B)