Computer Science, asked by shiva199829, 2 months ago

Each birthday, Meenu's parents gift her gold coins. On her 1st birthday she got one coin from
them, 2nd birthday 8 coins, 3rd birthday 27 coins, 4th birthday 64 coins, 5th birthday 125 coins
and so on. Meenu is now 10 years old. Given her age, help her calculate how many coins she can
get for that birthday.
Note: Age should be a valid positive number(>0). Incase of any invalid input, the output should
be "Invalid Age".
Sample Input 1:
Enter the age: 3
Sample Output 1: Thing
Meenu gets 27 coins
Sample Input 2:
Enter the age: 8
Sample Output 2:
Meenu gets 512 coins
in java​

Answers

Answered by rashidkhna73
2

Answer:

Heat is the form of energy that is transferred between systems or objects with different temperatures (flowing from the high-temperature system to the low-temperature system). Also referred to as heat energy or thermal energy. Heat is typically measured in Btu, calories or joules

Answered by priyankapawar20000
0

Explanation:

Each birthday, Meenu's parents gift her gold coins. On her 1st birthday she got one coin from

them, 2nd birthday 8 coins, 3rd birthday 27 coins, 4th birthday 64 coins, 5th birthday 125 coins

and so on. Meenu is now 10 years old. Given her age, help her calculate how many coins she can

get for that birthday.

Note: Age should be a valid positive number(>0). Incase of any invalid input, the output should

be "Invalid Age".

Sample Input 1:

Enter the age: 3

Sample Output 1: Thing

Meenu gets 27 coins

Sample Input 2:

Enter the age: 8

Sample Output 2:

Meenu gets 512 coins

in java

Attachments:
Similar questions