answersLogoWhite

0

#include

using std::cout;

using std::cin;

using std::endl;

int main()

{

double firstNumber = 0;

cout << "Enter first number: ";

cin >> firstNumber;

double secondNumber =0;

cout << "Enter second number: ";

cin << secondNumber;

cout << "Sum of the two numbers is: " << (firstNumber + secondNumber) << endl;

return 0;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Draw a flowchart to accept 3 numbers and display the largest number?

draw a flowchart to display the first tenth even number


Draw a flowchart to accept five numbers and display the sum of the numbers?

start, inputbox,inputbox,inputbox,inputbox,inputbox,progresh,display,stop&nbsp;


Flowchart for addition of two numbers?

start accept a,b and c c=a+b display c stop


Draw a flowchart that will accept radius and display the area of circle?

program that display the area of a circle of a reduce


Accept 5 numbers in an array and display it?

Accept 5 numbers in an array and display it.


Draw a flowchart to accept two numbers and check if the first is divisible by the second?

Convert this in flow chart and see if it can help Start Display "Enter 2 numbers" Accept 2 numbers A &amp; B Divide the A with B Is result Zero? ---- No - A is not Dividable with second Yes - A is Dividable with second End


A flowchart to Accept three numbers and check whether it firms to Pythagorean triplet?

Accept 3 natural numbers and check whether it firms pythagorean triplet


Draw a flowchart that will determine and display the largest among the three numbers being inputted?

start input A &amp; B if A&gt;B print A is greatest if B&gt;A print B is greatest stop james ola writes.....SOT.


How do you write an algorithm to accept two numbers and divide the first number by second and display their quotent?

To write an algorithm for dividing two numbers, follow these steps: Start by accepting two input numbers, say num1 and num2. Check if num2 is not equal to zero to avoid division by zero errors. If valid, calculate the quotient by dividing num1 by num2 and store the result. Finally, display the quotient. If num2 is zero, display an error message indicating that division by zero is not allowed.


How to write an algorithm that accepts five numbers and displays the sum and average of the numbers?

1.Start Algorithm 2.Enter first number 3.Enter second number 4.Enter third number 5.Enter fourth number 6.Enter fifth number 7.Add five number 8.display five number / 2 9.Display result 10.End Algorithm


Design an algorithm that will accept a perons name from the screen entered as surname first name separated by a comma Your program is to display the name as first name followed by three blanks?

Design an algorithm that will accept a perons's name from the screen entered as surname, first name, separated by a comma. Your program is to display the name as frist name, followed by three blanks, followed by the surname. -defining diagram -pseudocode algorithm


Write an algorithm that accept five numbers add them together and output the results instruct?

dont know use google instead dumb