#include <iostream>using std::cout;using std::cin;using std::endl;int main(){ double x, percent; cout << "Enter the number: "; cin >> x; cout << "Enter the percentage: "; cin >> percent; cout << "\n" << percent << " percent of the " << x << " = " << (x / 100 * percent) << endl; return 0;}
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
double x, percent;
cout << "Enter the number: ";
cin >> x;
cout << "Enter the percentage: ";
cin >> percent;
cout << "\n" << percent << " percent of the " << x
<< " = " << (x / 100 * percent) << endl;
return 0;
}