{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

FNOVRLOD - cout<<"\nThe area of triangle...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include<iostream.h> #include<conio.h> #include<math.h> int area(int,int); float area(int,int,int); float area(float); f void main() { int a,b,c,d,e; float r; clrscr(); cout<<"Enter the dimensions of rectangle"; cin>>a>>b; cout<<"Enter the dimensions of triangle"; cin>>c>>d>>e; cout<<"Enter the dimensions of circle"; cin>>r; cout<<"\nThe area of rectangle is "<<area(a,b);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout<<"\nThe area of triangle is "<<area(c,d,e); cout<<"\nThe area of circle is "<<area(r); getch(); } int area(int m,int n) { return (m*n); } float area(int x,int y,int z) { float a,s; s=(x+y+z)/2; a=sqrt(s*(s-x)*(s-y)*(s-z)); return (a); } float area(float t) { return (3.142*t*t); }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online