SlideShare ist ein Scribd-Unternehmen logo
1 von 1
#include <iostream>
using namespace std;
int main()
{
int weight;
float height,BMI;
cout<<"Please enter your weight in pounds: ";
cin>>weight;
cout<<"nPlease enter your height in inches: ";
cin>>height;
BMI =weight*703/(height*height);
cout<<"nYour body mass Index is: "<<BMI;
if (BMI>25)
cout<<"nnYou are somewhat overweight.";
else if (BMI<18.5)
cout<<"nnYou are somewhat underweight.";
else if (BMI>18.5 && BMI <25)
cout<<"nnCongratulations! You are within a healthy weight
range.";
cin.get ();
cin.get ();
return 0;
}
Edit &
Run

Weitere ähnliche Inhalte

Andere mochten auch (17)

Bankia
BankiaBankia
Bankia
 
Bancs case sbi
Bancs case sbiBancs case sbi
Bancs case sbi
 
Música banda (2)
Música banda (2)Música banda (2)
Música banda (2)
 
Viatge Per ItàLia
Viatge Per ItàLiaViatge Per ItàLia
Viatge Per ItàLia
 
Banksy
BanksyBanksy
Banksy
 
Life in baneasa
Life in baneasaLife in baneasa
Life in baneasa
 
banana
bananabanana
banana
 
Banten
BantenBanten
Banten
 
Our Message Hasan Al Banna
Our Message Hasan Al BannaOur Message Hasan Al Banna
Our Message Hasan Al Banna
 
Banting 1
Banting 1Banting 1
Banting 1
 
Barok
BarokBarok
Barok
 
Jessica Bankston's Resume
Jessica Bankston's ResumeJessica Bankston's Resume
Jessica Bankston's Resume
 
Eleeo-email-banner(1)
Eleeo-email-banner(1)Eleeo-email-banner(1)
Eleeo-email-banner(1)
 
Rgoska banjica Knjazevac
Rgoska banjica Knjazevac Rgoska banjica Knjazevac
Rgoska banjica Knjazevac
 
Chap1 Civil Overview
Chap1  Civil  OverviewChap1  Civil  Overview
Chap1 Civil Overview
 
Articles_2
Articles_2Articles_2
Articles_2
 
Bamse air defence missile system, sweden
Bamse air defence missile system, swedenBamse air defence missile system, sweden
Bamse air defence missile system, sweden
 

Mehr von Florlyn Cabang (6)

Myreportmurillo
MyreportmurilloMyreportmurillo
Myreportmurillo
 
Poem
PoemPoem
Poem
 
Fs 6 reflection
Fs 6 reflectionFs 6 reflection
Fs 6 reflection
 
Cover page
Cover pageCover page
Cover page
 
Fs 3
Fs 3Fs 3
Fs 3
 
Ang
AngAng
Ang
 

Kürzlich hochgeladen

Human genetics..........................pptx
Human genetics..........................pptxHuman genetics..........................pptx
Human genetics..........................pptx
Silpa
 
development of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusdevelopment of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virus
NazaninKarimi6
 
LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.
Silpa
 

Kürzlich hochgeladen (20)

Human genetics..........................pptx
Human genetics..........................pptxHuman genetics..........................pptx
Human genetics..........................pptx
 
Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptx
 
Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.
 
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
 
Site Acceptance Test .
Site Acceptance Test                    .Site Acceptance Test                    .
Site Acceptance Test .
 
Chemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfChemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdf
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 
Cyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptxCyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptx
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical Science
 
development of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusdevelopment of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virus
 
TransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRings
TransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRingsTransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRings
TransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRings
 
GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
 
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxClimate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
 
Dr. E. Muralinath_ Blood indices_clinical aspects
Dr. E. Muralinath_ Blood indices_clinical  aspectsDr. E. Muralinath_ Blood indices_clinical  aspects
Dr. E. Muralinath_ Blood indices_clinical aspects
 
Clean In Place(CIP).pptx .
Clean In Place(CIP).pptx                 .Clean In Place(CIP).pptx                 .
Clean In Place(CIP).pptx .
 

Banto

  • 1. #include <iostream> using namespace std; int main() { int weight; float height,BMI; cout<<"Please enter your weight in pounds: "; cin>>weight; cout<<"nPlease enter your height in inches: "; cin>>height; BMI =weight*703/(height*height); cout<<"nYour body mass Index is: "<<BMI; if (BMI>25) cout<<"nnYou are somewhat overweight."; else if (BMI<18.5) cout<<"nnYou are somewhat underweight."; else if (BMI>18.5 && BMI <25) cout<<"nnCongratulations! You are within a healthy weight range."; cin.get (); cin.get (); return 0; } Edit & Run