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 using Java
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:
Meenu gets 27 coins
Answers
Answered by
0
Explanation:
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
please like me and support me
Similar questions