Skip to content

Instantly share code, notes, and snippets.

@nalin-adh
Created November 8, 2015 18:03
Show Gist options
  • Save nalin-adh/eb625cfce8c8f1bb3d77 to your computer and use it in GitHub Desktop.
Save nalin-adh/eb625cfce8c8f1bb3d77 to your computer and use it in GitHub Desktop.
A C++ program that reads the number of male and female students and find female to male ratio.
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
float m,f;
cout<<"Enter the number of male : ";cin>>m;
cout<<"Enter the number of femaile : ";cin>>f;
cout<<"\nFemaile to male ratio is "<<f/m<<" : "<<1;
getch();
return(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment