Thank youLooks pretty nice, I like the script etc on the man to the right.
Area overloded
#include<iostream.h>
#include<conio.h>
#define phi 3.14
int area(int,int);
float area(int);
void main()
{
int a,b,c,cho;
clrscr();
cout<<"\t What do you want to do?\n";
cout<<"1. area of rectangle"<<endl;
cout<<"2. area of circle"<<endl;
cout<<"Choice:";
cin>>cho;
switch(cho)
{
case 1:
cout<<"Enter lengt and breath (with white space):";
cin>>a>>b;
cout<<"Area of RECTANGLE:"<<area(a,b);
break;
case 2:
cout<<"Enter radius:";
cin>>c;
cout<<"Area of CIRCLE:"<<area(c);
break;
}
getch();
}
int area(int x,int y)
{
return (x*y);
}
float area(int s)
{
return (phi*s*s);
}
Yes, I know what language it isThank youI like to do kind of grungy and disorted images
![]()
That language is actually C++, it's an Area Overloaded, And another script, but i can't find it:
Code:Area overloded #include<iostream.h> #include<conio.h> #define phi 3.14 int area(int,int); float area(int); void main() { int a,b,c,cho; clrscr(); cout<<"\t What do you want to do?\n"; cout<<"1. area of rectangle"<<endl; cout<<"2. area of circle"<<endl; cout<<"Choice:"; cin>>cho; switch(cho) { case 1: cout<<"Enter lengt and breath (with white space):"; cin>>a>>b; cout<<"Area of RECTANGLE:"<<area(a,b); break; case 2: cout<<"Enter radius:"; cin>>c; cout<<"Area of CIRCLE:"<<area(c); break; } getch(); } int area(int x,int y) { return (x*y); } float area(int s) { return (phi*s*s); }