how to make a adittion calculator in c 2b 2b

Solutions on MaxInterview for how to make a adittion calculator in c 2b 2b by the best coders in the world

showing results for - "how to make a adittion calculator in c 2b 2b"
Jakob
06 Jan 2021
1#include <iostream>
2using namespace std;
3
4int main() {
5    float firstCalculation = 0.00, secondCalculation = 0.00;
6    cout << "Enter the first calculation, it's addition anyway!\n";
7    cin >> firstCalculation;
8    cout << "Enter your second calculation\n";
9    cin >> secondCalculation;
10    float fullCalculation = firstCalculation + secondCalculation;
11    cout << "The answer is: " << fullCalculation;
12    
13    return 0;
14}