Computer Science, asked by nobody63, 3 months ago

Write a program in QBasic to calculate Body Mas Index. Accept the weight in KG and
Height in meters from the user. Formula: weight[kg]/(height[m])2 5M
Pls

Answers

Answered by mail2rheaagr
0

Answer:

#include <iostream>

using namespace std;

#define MAX_LENGTH 100

int main()

{

char name[MAX_LENGTH]={0};

int age;

 

cout<<"Enter name of the person: ";

cin.getline(name,MAX_LENGTH);

cout<<"Enter age: ";

cin>>age;

 

cout<<"Name: "<<name<<endl;

cout<<"Age: "<<age<<endl;

 

return 0;

}

Similar questions