Flipkart announced the year end stock clearance sale and as apart of they have also conducting the contest and the users answering the questions asked in the contest can win Moto One Power free of cost.
The task is to display the first three powers (N^1, N^2, N^3) of the given.
Nishanth was looking to buy Moto One Power.
If you help nishanth in solving the task he will get his favorite mobile.Can you help him?
Input:
Only line of the input has a single integer representing N.
Output:
Print the first three powers of N
#include <stdio.h> #include <math.h> int main() { int N,fp,sp,tp; scanf("%d",&N); fp=pow(N,1); sp=pow(N,2); tp=pow(N,3); printf("%d %d %d",fp,sp,tp); return 0; }
INPUT_1:
137
OUTPUT:
137 18769 2571353
INPUT_2:
89
OUTPUT:
89 7921 704969
INPUT_3:
98
OUTPUT:
98 9604 941192
Morae Q!
- Convert seconds to hours – HMS format.
- Find out the tax amount of the bill with tip for the meal.
- Find the area of the pyramid.
- Find the area of triangle using heron’s formula.
- Find the interest and amount resided in the bank.
- Convert the travel days to years and months.
- Find the first three powers of N number.
- Compute the height from feet and inches to centimetres.
- Calculate the amount of interest earned in the bank.
- Find the ways they can choose the sequence of dummy statues.
- Find the Lapindrome strings.
- Classify the salary of a person.
- Find the day on providing the week number.
- Find the least number of marble stones needed to pave the square mall.
- Find the number of steps on chessboard performed to satisfy a condition.
- Find the time, hours and minutes the train was delayed.
- Find the quantity of food packets shared and available.
- Compute all Arithmetic Operations.
- Find the amount to pay for the electricity bill.
- Find the sum of numbers with three values after decimal point.