answersLogoWhite

0


Best Answer

int length

int breadth

int area= (length x breadth)

print area

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to accept length and breadth of a rectangle and then calculate its area and print it?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


How do you write the pseudo codes that will accept 7 numbers and display their sum?

Start accept 7 number calculate sum print sum stop


How is the square and rectangle the same?

A square and a rectangle are identical in every way except one:The length and width of a square must be equal, whereas the lengthand width of a rectangle may be equal but are not required to be.


Draw a flowchart that will accept radius and display the area of circle?

program that display the area of a circle of a reduce


What is the length of the diagonal of a rectangle whose dimensions are in the ratio of 3 to 4 with with an area of 369.63 square cm showing work?

Well, you can do your own homework, but here is the general outline of what you must do. Use the variable "x" to express the width of the rectangle. In that case, because of the ratio, the length will be (4/3)x. Write an equation for the area of the rectangle, replace x, (4/3)x and the known area, and solve for "x". (Since a quadratic equation will give you two solutions, you will obviously accept the positive solution.) Once you calculate "x", you can easily calculate the other side of the rectangle, as (4/3)x. Finally, use the Pythagorean Theorem to calculate the diagonal. Another Answer:- 1 Let the dimensions be 3x and 4x 2 So 3x*4x = 369.63 or 12x2 = 369.63 3 Divide each side by 12 and then square root each side 4 Therefore: x = 5.55 and dimensions must be 16.65 by 22.2 5 Using Pythagoras: 16.652+22.22 = 756.9025 and its square root is 27.75 6 Answer: length of diagonal = 27.75 cm

Related questions

How do you write BASIC program to accept variables?

dim a input a


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


How to write a program to accept the user name and password and then shop this is your Password?

you cant


How do you write the pseudo codes that will accept 7 numbers and display their sum?

Start accept 7 number calculate sum print sum stop


Colleges who accept 5.5 band in Canada under spp program?

no university in the world


C program to accept a sentence using scanf?

scanf ("%[^\n]s", sentence);


How is the square and rectangle the same?

A square and a rectangle are identical in every way except one:The length and width of a square must be equal, whereas the lengthand width of a rectangle may be equal but are not required to be.


What is the computer definition of launch?

Launching is where a new computer program is loaded from disk, copied into memory and then the program goes through its startup routines. A program is launched when it is ready to accept user input.


Write a c program to accept name and store the name in its short form?

happy birthday...


Write a program to accept name and store the name in it's short form as eg sikkim manipal university SMU?

Write a program to accept name and store the name in its short form (e.g. Sikkim Manipal University should be stored as SMU)


What accredited high school diploma programs does Mississippi colleges accept?

I am looking for a accredited high school diploma program that are accept at community colleges in the state of Mississippi


Can you program an already programmed key for a mondeo mk2 year 2000?

Yes, you can. Actually you don`t program the key. Key remains unchanged, you just program the car to accept this particular key.