👤

Write an Algorithm for a program that will ask the user to input two numbers and displays the sum of those numbers.​

Sagot :

#include <iostream>

int main(){

int a,b,sum;

std::cout << "Enter the first number:";

std::cin >> a;

std::cout << "Enter the second number:";

std::cin >> b;

sum = a + b;

std::cout << "The sum is " << sum << "\n";

return 0;

}