A dark dragon will have a level equal to the product of its feet and heads. A light dragon will have a level equal to the sum of its feet and heads. A magical dragon will have a level equal to the maximum of its feet and heads.
Print out the classification of the dragon and its corresponding level. If the dragon has no hands and feet output "Not Real"
Right now all I can manage to figure out it the last part.
int main()
{
int g;
int k;
cout << "Please enter number of feet and heads on the Chimera: ";
cin >> g;
cin >> k;
if (g==0 && k == 0){
cout << "Not Real";
}
else if (f==)
return 0;
}
what the sample input/output is:
input output
2 4 Light 8
1 3 Dark 4
1 2 Magical 2
0 0 Not Real
I am really just confused as to how it knows which classification if we just input to numbers from the user.Thank you in advanced!
Aucun commentaire:
Enregistrer un commentaire