The Electricity Officer has mentioned the total counts of unit and amount. The officer inform the customer the bill amount in a unique format.
The format given by electricity officer as follow:
But customers are finding the difficult to find the exact amount that needs to be paid.
Can you help the customers?
Functional Description:
Total Bill Amount = unitconsumed ^ costperunit
Input Format :
The first line of input represents the integer value of unitconsumed
The second line of input represents the integer value of costperunit
Output Format:
Print the total Bill amount in single line.
#include <stdio.h> #include <math.h> int main() { int totalBillAmount; int unitconsumed; int costperunit; scanf("%d",&unitconsumed); scanf("%d",&costperunit); totalBillAmount=pow(unitconsumed,costperunit); printf("%d",totalBillAmount); return 0; }
Input_1:
23
3
Output:
12167
Input_2:
19
5
Output:
2476099
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.