K
Khách

Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.

23 tháng 12 2022

dai=float(input())

rong=float(input())

c=(dai+rong)/2

s=dai*rong

print(c,s)

4 tháng 7 2023

# Take the length and width of a rectangle from the user.

length = int(input())

width = int(input())

# Display the perimeter and area of the rectangle on the screen.

print("The Perimeter of the rectangle is:")

print("The area of the rectangle is:")

7 tháng 5 2023

Var cd,cr,cv,dt:real;

Begin

Write('Chieu dai = ');readln(cd);

Write('Chieu rong = ');readln(cr);

cv:=(cd+cr)*2;

dt:=cd*cr;

Writeln('Chu vi la ',cv:10:2);

Write('Dien tich la ',dt:10:2);

Readln

End.

22 tháng 3 2023

a = int(input("Nhập chiều dài: "))

b = int(input("Nhập chiều rộng: "))

chu_vi = 2*(a+b)

dien_tich = a*b

print(f"Chu vi hình chữ nhật là: {chu_vi}")

print(f"Diện tích hình chữ nhật là: {dien_tich}")

uses crt;

var a,b:integer;

begin

clrscr;

readln(a,b);

writeln((a+b)*2);

writeln(a*b);

readln;

end.

b: 

Input: a,b

Output: (a+b)*2 và a*b

21 tháng 10 2021

#include <bits/stdc++.h>

using namespace std;

double a,b;

int main()

{

cin>>a>>b;

cout<<"Chu vi la:"<<fixed<<setprecision(2)<<(a+b)/2<<endl;

cout<<"Dien tich la:"<<fixed<<setprecision(2)<<a*b;

return 0;

}

24 tháng 10 2021

a: #include <bits/stdc++.h>

using namespace std;

double a,b,cv,dt;

int main()

{

cin>>a>>b;

cv=(a+b)/2;

dt=a*b;

cout<<"Chu vi la:"<<fixed<<setprecsion(2)<<cv<<endl;

cout<<"Dien tich la:"<<fixed<<setprecision(2)<<dt;

return 0;

}

16 tháng 11 2021

Diện tích hình chữ nhật

a x b

16 tháng 11 2021

Dạ e cam ơn:3