-->

program to convert paisa to rupees

// program to convert paisa to rupees
#include<stdio.h>
#include<conio.h>
void main()
{
float paisa;
float rupees;
printf(“enter amount of paisa\n”);
scanf(“%f”,&paisa);
rupees=paisa/100;
printf(“the area is=%f\n”,rupees);
getch();
}

program to get area of triangle using perimeter concept

// program to get area of triangle using perimeter concept
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float a,b,c;
float s,area,peri;
printf(“enter sides of triangle\n”);
scanf(“%f%f%f”,&a,&b,&c);
s=a+b+c;
area=sqrt(s*(s-a)*(s-b)*(s-c));
printf(“the area is=%f\n”,area);
getch();
}

program to get area of square

// program to get area of square
#include<stdio.h>
#include<conio.h>
void main()
{
float length;
float area;
printf(“enter base and height of square\n”);
scanf(“%f”,&length);
area=length*length;
printf(“the area is=%f\n”,area);
getch();
}

program to get area of parallelogram

//program to get area of parallelogram
#include<stdio.h>
#include<conio.h>
void main()
{
float base,height;
float area;
printf(“enter base and height of parallelogram\n”);
scanf(“%f%f”,&base,&height);
area=base*height;
printf(“the area is=%f\n”,area);
getch();
}