FNOVRLOD - cout<<"\nThe...

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&lt;&lt;&quot;\nThe area of triangle is &quot;&lt;&lt;area(c,d,e); cout&lt;&lt;&quot;\nThe area of circle is &quot;&lt;&lt;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

This note was uploaded on 10/25/2010 for the course CMPN SEM1 taught by Professor Thakur during the Fall '06 term at University of Mumbai.

Ask a homework question - tutors are online