Contact: aviboots(AT)netvision.net.il
42,144 questions
54,850 answers
573 users
#include <iostream> int main() { double x = 47, y = 220; double percent = (x / y) * 100.0; std::cout << x << " is " << percent << "% of " << y << std::endl; } /* run: 47 is 21.3636% of 220 */