/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
float a,b,x,y;
cout << "What percent of the pupils in our class are girls and what percent are boys?" << endl;
cout << "Give the number of girls in your class: " << endl;
cin >> a;
cout << "Give the number of boys in your class: " << endl;
cin >> b;
x = a/(a+b)*100;
y = b/(a+b)*100;
cout << "The percent of girls is: "<<x<<" %" << endl;
cout << "The percent of boys is: "<<y<<" %" << endl;
return 0;
}