Created
November 8, 2015 18:03
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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