Jannu and Preethi both went to Egypt for visiting Pyramids. On seeing the Pyramids they were in discussion. During the discussion Jannu asked Preethi, what will be the area of this Pyramid. Preethi have no idea about it.
Can you help Preethi in calculating the area of this Pyramid?
Functional Description:
Area = ( height * base )/2
Input:
Input has two floating point values representing height and base.
Output:
Prints the area of the pyramid with only three values after decimal point.
#include <stdio.h> int main() { float base,height,area; scanf("%f %f",&height,&base); area=(height*base)/2; printf("%.3f",area); return 0; }
INPUT_1:
31.5 43.7
OUTPUT:
688.275
INPUT_2:
176.3 120.6
OUTPUT:
10630.890
INPUT_3:
20.6 50.2
OUTPUT:
517.060
INPUT_4:
30.2 60.5
OUTPUT:
913.550
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.