Basic
Practice Problems based on chapter which you learn in previous Tutorials.
#include <iostream>
Copy Code
int
main
() {
double
num1, num2;
std::cout
<< "Enter the first number: ";
std::cin
>> num1;
std::cout
<< "Enter the second number: ";
std::cin
>> num2;
double
sum = num1 + num2;
std::cout
<< "Sum: " << sum << std::endl;
return
0;
}