#include #include #include void main() /*{ float p,t,r,ncmp_year; float simple,compound,cmp_amount; clrscr(); printf("Principal:"); scanf("%f",&p); printf("Rate:"); scanf("%f",&r); printf("Time:"); scanf("%f",&t); printf("compoundings per year:"); scanf("%f",&ncmp_year); simple=p*t*r/100; cmp_amount=p*pow(1+r/(ncmp_year*100),ncmp_year*t); compound=cmp_amount-p; printf("The simple intrest is:%f\n",simple); printf("The compound intrest is:%f",compound); getch(); }*/ /* { float c,f; clrscr(); printf("Enter temperature in celsius:" ); scanf("%f",&c); f=1.8*c+32; printf("Equivalent fahrenheit=%f\n",f); printf("\nEnter temp. in fahrenheit:"); scanf("%f",&f); c=(f-32)/1.8; printf("Equivalent celsius=%f",c); getch(); } */ { float a,b,c; float peri,s,area; clrscr(); printf("Enter three sides:"); scanf("%f %f %f",&a,&b,&c); peri=a+b+c; s=peri/2; area=sqrt(s*(s-a)*(s-b)*(s-c)); printf("Area of the tringle is %f\n",area); getch(); }