#include <iostream>#include <string>
int main(){ int a,b,c; float x; std::cout << "Input a: "; std::cin >> a; std::cout << "Input b: "; std::cin >> b;
std::cout << "Input c: "; std::cin >> c;
x=a*b*c;std::cout << x;std::cout << "\n";x=x/3;std::cout << x;}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <string>
int main()
{
int a,b,c;
float x;
std::cout << "Input a: ";
std::cin >> a;
std::cout << "Input b: ";
std::cin >> b;
std::cout << "Input c: ";
std::cin >> c;
x=a*b*c;
std::cout << x;
std::cout << "\n";
x=x/3;
std::cout << x;
}