answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

main()

{

int a,b,sum=0;

clrscr();

printf("Enter two variable:--");

scanf("%d%d",&a,&b);

sum=a+b;

printf("Sum of %d+%d=%d",a,b,sum);

getch();

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an c program of addition of two values?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program using recursion which should take two values and display 1st value raised to the power of second value?

Write a program using recursion which should take two values and display 1st value raised to the power of second value.


How do you write a c program to perform addition on two floating point values and display the result?

void print_sum (float a, float b) { printf ("The sum of %d and %d is %d\n", a, b, a+b); }


How do you develop a JAVA program that computes matrices?

Matrices can't be "computed" as such; only operations like multiplication, transpose, addition, subtraction, etc., can be done. What can be computed are determinants. If you want to write a program that does operations such as these on matrices, I suggest using a two-dimensional array to store the values in the matrices, and use for-loops to iterate through the values.


Write a java program of addition of two variables?

public class AddNumbers{ public int add(int a, int b){ return a + b; } }


Write java program for addition of two objects?

May be link might help -&gt; http://www.allinterview.com/viewpost/408298.html There it is implemented through...... Operator Overloading!


Write a program using iostreams to take as input two multi-dimensional arrays and print their sum as output Matrix Addition in Matrix format?

http://www.assignmentsclub.com/


What is the definition of addition in math?

To put two or more given values together.


How to write aC program to merge two singly linked list?

write a c program to circular queue


Write an addicion story for two 3-digit number?

write an addition story for two 3-digit numbers. write the answer to your story


How do you write a c program to read two character from keyboard nd sot them in alphabetical order?

Every character in C++ is basically belongs to short. You can convert entered characters to short, compare their values and according to the values sort them in alphabetical order.


Write a program for addition of two numbers in C language?

int main (void) { printf ("%d+%d=%d\n", 6, 7, 6+7); return 0; }


Write a program to add two 8 bit numbers in microprocessor 8051?

write it in 8085