sign up I login
 advanced
refer a friend - earn nickels!!

Ask & Discuss Questions with Community & Experts

Moderation Team
 90 chars left    advanced
Ask iit jee aieee pet cbse icse state board community Community Discussion Question: i will rate to anyone whosoever do i
Forum Index -> Computer Science like the article? email it to a friend.  
Author Message
deo (7)

Cool goIITian

Olaaa!! Perrrfect answer. 1  [2 rates]

deo's Avatar

total posts: 37    
offline Offline

lese tell me the c++ programme for the area of  the circle &area of square


i  will rate to anyone whosoever do it

    
abhi.thechamp (27)

New kid on the Block

Olaaa!! Perrrfect answer. 5  [6 rates]

abhi.thechamp's Avatar

total posts: 8    
offline Offline
i can give u the program in JAVA
 this reply: 5 points  (with Olaaa!! Perrrfect answer.   in 1 votes )   [?]
 
You have to be logged on to rate
  
guns_and_roses (349)

Blazing goIITian

Olaaa!! Perrrfect answer. 61  [83 rates]

guns_and_roses's Avatar

total posts: 589    
offline Offline

const int p=3.14;//pi


int s';//side of squre


int r;//radius


cin>>r>>s;


int areas;


int areac;


areas=s*s;


areac=p*(r*r);


cout<<areas<<areac;

 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
deedee (1730)

Blazing goIITian

Olaaa!! Perrrfect answer. 286  [436 rates]

deedee's Avatar

total posts: 907    
offline Offline

int areac(int );.................................fucntion prototype


int areas(int);...............................fucntion prototype


#include<iostream.h>


#include<conio.h>


void main()


{


clrsrc ();


int  r,l,area,areaa;


cout<<"entre d radius and d side of d square";


cin>>r>>l;


area=areac(r);.......................function call


areaa=areas(l);........................function call


cout<<" d area of d square is "<<areaa;


cout<<" d area of d circle is<<area;


getch ();


}


int areac (int r)...........................function defination


{ int x,a;


a=pi*r*r;


return a;


}


int areas(intl)...................function defination


{


int y,b;


b=y*y;


return b;


}


hope u get it ..........


 


don't walk as if u rule d world
walk as if u dont care who rules d world

-this is knw as attitude


B who u r and say wat u feel ......
coz those who mind don't matter ........
and those who matter dont mind ......... :)


 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
 
Forum Index -> Computer Science
Go to:   

Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Narayana - Kota , Delhi , Others
Brilliant Tutorials - Class , Crash
Aakash Institute - Medical , Engg
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya