12. Write a C program to enter base and height of a triangle and find its area. Solution :- #include<stdio.h> #include<conio.h> void main() { clrscr(); float base,height,area; printf("Enter the base of a traingle :-"); scanf("%f",&base); printf("Enter the height of a traingle:-"); scanf("%f",&height); area = (base*height)/2; printf("The area of a Traingle is :-%f",area); getch(); } Output :-
All computer course for class 9th to 12th with proper practical and theory .........