Asking for help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Asking for help

. Question 1 (2) Write a programme that has two variables length and breadth. Assign integer values to these variables. Use the formula area=length * breath to calculate the area of the rectangle. Display the area using a print command.

1st Feb 2020, 8:57 PM
Ntokozo Simphiwe Masuku
Ntokozo Simphiwe Masuku - avatar
3 Answers
+ 1
length=input(“enter length”) breadth=input(“enter breadth”) area=length*breadth print(area) i think this is what you mean in python
1st Feb 2020, 9:00 PM
Yuhan
+ 1
int length,breadth; cin>>length>>breadth; int area=length *breadth; cout <<area<<endl; In C++
1st Feb 2020, 9:04 PM
★᭄ꦿ᭄ꦿနίԹʆαနʍմန
★᭄ꦿ᭄ꦿနίԹʆαနʍմန - avatar
0
Thanks that it, now I understand
1st Feb 2020, 9:02 PM
Ntokozo Simphiwe Masuku
Ntokozo Simphiwe Masuku - avatar