Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- //double x;
- int a, b, c;
- void input() {
- // cout << "Enter x: ";
- // cin >> x;
- cout << "Enter a: ";
- cin >> a;
- cout << "Enter b: ";
- cin >> b;
- cout << "Enter c: ";
- cin >> c;
- }
- int main() {
- input();
- // while (b < a) {
- // cout << "Input range again:\n";
- // input();
- // }
- cout << "Result = " << a * a + b * b + c * c << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment