- 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.
3 ответов
+ 1
length=input(“enter length”)
breadth=input(“enter breadth”)
area=length*breadth
print(area)
i think this is what you mean in python
+ 1
int length,breadth;
cin>>length>>breadth;
int area=length *breadth;
cout <<area<<endl;
In C++
0
Thanks that it, now I understand