answersLogoWhite

0



Get the input of two numbers from the user.
a,b
Add those two numbers and store the value in another variable.
c=a+b;
print the value c

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you Write a program in c language to calculate the sum of two integers?

#include #include #include void main(){char a;int firstInt, secondInt, sum;cout > firstInt >> secondInt;sum = firstInt + secondInt;cout


How do you write The sum of five squared and two?

52 + 2


How do you write the sum two thirds of sixty minutes?

you get a calculator!


How do you write the biconditional for If two angles are complementary then their sum is 90 degrees?

Two angles are complementary if and only if their sum is 90 degrees.


How do you display a sum of two integers in assembly language?

cheese burger


Write 40 as a sum of two prime numbers?

37 + 3


What numbers as a sum of two prime numbers 95?

You can't write that as the sum of two prime numbers. Note: Goldbach's Conjecture (for expressing numbers as the sum of two prime numbers) applies to EVEN numbers.


Write the number 12 as the sum of two primes?

12=5+7


Write 25 as the sum of two prime numbers?

2 + 23 = 25


What is the proper way to write the following sentenceThere are three two's in the English language.?

There are two three in English language


Write a program that will accept two numbers and find their sum anddifferences. If the sum is more than the difference, display the sum otherwisedisplay the difference. Pascal programming?

program SumAndDifference; var num1, num2, sum, difference: integer; begin write('Enter first number: '); read(num1); write('Enter second number: '); read(num2); sum := num1 + num2; difference := num1 - num2; if sum > difference then written('The sum is greater: ', sum) else written('The difference is greater: ', difference); end. This program will prompt the user to enter two numbers, calculate their sum and difference, and then compare the two values. If the sum is greater than the difference, it will display the sum; otherwise, it will display the difference.


How do you write this sum 630 002 in words?

Six hundred and thirty thousands two