// a. Real life object is something that can be grabbed and has properties while object found in object oriented
// program OOP are instances of a class.
// b.
#include <iostream>
using namespace std;
int main()
{
int age;
double height,weight;
cout<<"\nEnter age: ";
cin>>age;
cout<<"\nEnter weight: ";
cin>>weight;
cout<<"\nEnter height: ";
cin>>height;
if (age>=60 && weight>=80 && height>=6.8)
cout<<"\nPremium is high";
else
cout<<"\nPremium is low";
return 0;
}
Comments
Leave a comment