Input Enter any number: 9 Output Square root of 9 = 3
Input Enter base of the triangle: 10 Enter height of the triangle: 15 Output Area of the triangle = 75 sq. units Formula to calculate area area = (base * height) / …
Input Enter first angle: 60 Enter second angle: 80 Output Third angle = 40
Input Enter side of the equilateral triangle: 10 Output Area of equilateral triangle = 43.3 sq. units Area of an equilateral triangle is given by formula: area = (sqrt(3) / 4) * (side …
Input Enter marks of five subjects: 95 76 85 90 89 Output Total = 435 Average = 87 Percentage = 87.00 Process: Input marks of five subjects. Store into variables like …
Input Enter principle: 1200 Enter time: 2 Enter rate: 5.4 Output Simple Interest = 129.600006 Find simple interest using formula SI = (principle * time * rate) / 100.