Florence is in Wild tribe ranch. Wild tribe ranch is Adventure Park for adults. Florence is in front of a live cave. The mouth of cave is like a pothole. The guideline of the park mentions the maximum weight of a person who can go through the mouth of the cave. If the candidate’s weight is just same as maximum weight, then the candidate might require to have a rope with them. Florence has to determine whether she will be able to get through the pothole or not. Can you help her? The input should be the maximum weight and weight of Florence.
Answers
Answered by
0
Explanation:
There are several ways in which the program can be written and in various programming languages
The below program is written in simple python language
CODE
void main () :
weight_F = input("Enter the weight of Florence")
weight_max = input("Enter the maximum allowable weight")
if ( weight_F <= weight_max ):
print( "Weight of person is less than maximum weight")
else:
print( "Weight of person is more than maximum weight" )
return
Answered by
0
#include<iostream>
int main ()
{
int a,b;
std::cin>>a>>b;
if (a>b)
std::cout<<"Yes, you can Enter.";
else if (a==b)
std::cout<<"Yes, you can Enter. Kindly use a rope.";
else
std::cout<<"Sorry you can't Enter";
return 0;
}
Similar questions