1. Write a program that performs as a calculator ( addition, multiplication, division, subtraction).
#include<stdio.h> ( this applies in the given code )
#include
int main()
{
float a,h,b;
printf(“\n Enter height :”);
scanf(“%f”,&h);
printf(“\n Enter base :”);
scanf(“%f”,&b);
a=b*h*0.5;
printf(“\n Area of triangle = %f”,a);
return 0;
}