Home
About Us
Privacy Policy
Terms and Conditions
Copyright
Contact Us
Register
Sign In
Search
Questions
Aryan9933
@Aryan9933
August 2021
1
27
Report
write a program using variable to find the area and perimeter of a rectangle whose length is 10cm and breadth half of of length
Answers & Comments
nitish8089
Public class program{
public static void main(String...args){
double length=10;
double breadth=length/2;
double perimeter=2*(length+breadth);
System.out.println("perimeter of rectangle "+perimeter);
double area=length*breadth;
System.out.println("area of rectangle "+area);
}
}
_____________________c++
#include<iostream>
using namespace std;
int main(){
double length=10;
double breadth=length/2;
double perimeter=2*(length+breadth);
cout<<perimeter;
double area=length*breadth;
cout<<area;
return 0;
}
0 votes
Thanks 0
Aryan9933
bro in c++ it is not java
nitish8089
ok
nitish8089
c++ add on
nitish8089
:)
Add an Answer
Please enter comments
Please enter your name.
Please enter the correct email address.
Agree to
terms of service
You must agree before submitting.
Send
More Questions From This User
See All
Aryan9933
October 2021 | 0 Replies
calculate the amount and the compound interest on rupees 10000 for 6 months at 1...
Answer
Aryan9933
October 2021 | 0 Replies
how can we grow in self management...
Answer
Aryan9933
October 2021 | 0 Replies
Karim took a loan of rupees 25000 from Corporation Bank at 12% per annum compoun...
Answer
Aryan9933
September 2021 | 0 Replies
tex]factories this question...
Answer
Aryan9933
September 2021 | 0 Replies
disadvantage of a globe write at least three points...
Answer
Aryan9933
September 2021 | 0 Replies
sketch is a irregular drawing of a surface or any object why explain...
Answer
Aryan9933
September 2021 | 0 Replies
in which type of map conventional signs are used...
Answer
Aryan9933
September 2021 | 0 Replies
please solve this question no 12...
Answer
Aryan9933
June 2021 | 0 Replies
find the amount and the compound interest on Rupees 120000 at 8% per annum for o...
Answer
Aryan9933
April 2021 | 0 Replies
please solve this question...
Answer
Recommend Questions
normaica19
November 2022 | 0 Replies
pasagot ngayon na ito ipapasa please
faithvalerieturno
November 2022 | 0 Replies
how do early beliefs about constellations effect human culture
Muning1027
November 2022 | 0 Replies
yung tama po pls kailangan ko na bukas na talaga po submit ng modules ko
neshthmd
November 2022 | 0 Replies
is a disease causing organism that lives in humans or other animals and derives ...
gamboelise83
November 2022 | 0 Replies
or directionbf361c2d468f8ffa07252b7f7f4e2a8d 39180
laimarnisle
November 2022 | 0 Replies
What are the possible solution that may help the preservation of our flora and f...
duermejhonber
November 2022 | 0 Replies
why are there differrence between the colling rates of sand and water
namronlamoste24
November 2022 | 0 Replies
supernova elements form...
princeclarkcasipe30
November 2022 | 0 Replies
It is responsible for the extractions og energy from the food we eat...
faderonprincessmae
November 2022 | 0 Replies
please help me if you help me i will follow you
×
Report "write a program using variable to find the area and perimeter of a rectangle who..."
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
Helpful Links
About Us
Privacy Policy
Terms and Conditions
Copyright
Contact Us
Helpful Social
Get monthly updates
Submit
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
public static void main(String...args){
double length=10;
double breadth=length/2;
double perimeter=2*(length+breadth);
System.out.println("perimeter of rectangle "+perimeter);
double area=length*breadth;
System.out.println("area of rectangle "+area);
}
}
_____________________c++
#include<iostream>
using namespace std;
int main(){
double length=10;
double breadth=length/2;
double perimeter=2*(length+breadth);
cout<<perimeter;
double area=length*breadth;
cout<<area;
return 0;
}