Computer Science, asked by amitambika100, 5 months ago

Richa has received a project to design a program for calculating area of circle and square in a program

using 3 variables. But she is getting some errors in the program that are highlighted in red. Help her to

remove the errors from her code by rewriting it correctly. [4]

@Include<conio.h>

@Include<iostream.h>

void main()

{

clrscr();

int side,r;

Float ans;

cout<<Enter the val for side of square and radius for area of circle;

cin>>side>>r;

ans=SideXSide ;

cout<<end2<<"Area of Square "<<ans;

ans==(float)3.14XrXr;

cout<<end2<<"Area of Circle "<<ans;

getch();

}
plzz help​

Answers

Answered by mrnirjan1234
1

Answer:

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int s,r;

float a,c;

cout<<"Enter the val for side of square and radius for area of circle";

cin>>s>>r;

a=s*s;

cout<<endl<<"Area of Square "<<a;

c==3.14*r*r;

cout<<endl<<"Area of Circle "<<c;

getch();

}

Similar questions