3rd Question Dsa
3rd Question Dsa
#include<iostream> ***************************************************/
10 using namespace std;
11
12 void check()
13 int age;
14 float height, weight;
15 cout"enter age\n";
16
cinages
17
18
cout"\nenter
cin>>height;
height \n";
19
cout <"\nenter weight\n";
28
21
cin>>weight;
if(age 18R&age <258aheight>=5.288height<=5.68weight>=458&weight<=60)
23
24
cout"valid
else
";
25 cout<"error";
26
27
28 int main()
29 check();
30 return e3
31
C onlinegdb.com M
Apps Other bookmar
8 *******************************************************************************/
9 #include<iostream>
10 using namespace std;
11
12 void check()
13 { int age;
14 float height, weight;
15 cout "enter age \n";
16 cin>>age;
17 cOut "nenter height\n"
input
enter age
23
enter height
5.4
enter weight
55
valid