following is code for calculating are of circle with user input and without.
- code taking input from user:-
#include<iostream.h>
void main()
{
int l,b,h;
float a;
cout<<"enter the value of length,breadth,height"<<endl;
cin>>l>>b>>h;
a=l*b*h;
cout<<"area of rectangle is="<<a;
}
note:-it's just a sudo code if its not executing on your device make some changes in the further code this is only for understanding logic.
thankyou for visiting us stay tuned for learning and more intresting u can ask questions in comment section check other blogs for more info. comment mail for compitative cading thankyou.👍😎🙏
#include<iostream.h>
void main()
{
int l,b,h;
float a;
cout<<"enter the value of length,breadth,height"<<endl;
cin>>l>>b>>h;
a=l*b*h;
cout<<"area of rectangle is="<<a;
}
note:-it's just a sudo code if its not executing on your device make some changes in the further code this is only for understanding logic.
thankyou for visiting us stay tuned for learning and more intresting u can ask questions in comment section check other blogs for more info. comment mail for compitative cading thankyou.👍😎🙏
0 Comments