In ra màn hình diện tích và chu vi của hình chữ nhật

In ra màn hình diện tích và chu vi của hình chữ nhật

Nhập vào 2 cạnh của một hình chữ nhật. In ra màn hình diện tích và chu vi của hình chữ nhật.

Program HINH_CHU_NHAT;

Uses Crt;

Var a,b,s,c: real; 

Begin

  Clrscr;

  Writeln(‘ TINH DIEN TICH & CHU VI HINH CHU NHAT:’); 

  Writeln(‘--------------------------------------------------------------‘); 

  Write('Nhap chieu dai='); readln(a);

  Write('Nhap chieu rong=');readln(b);

  s:=a*b;

  c:=(a+b)*2;

  Writeln('Dien tich hinh chu nhat la:’,s:6:2); 

  Writeln('Chu vi hinh chu nhat:',c:6:2); 

  Readln;

End.
Bạn thấy bài viết này như thế nào?: 
Average: 9.6 (104 votes)
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
3 cách sắp xếp lại các fields trong Drupal

3 cách sắp xếp lại các fields trong Drupal

With all the software we teach, some tasks almost always confuse beginners.

Tìm hiểu Drupal 8 multilingual tidbits 16: configuration translation development

Tìm hiểu Drupal 8 multilingual tidbits 16: configuration translation development

We used your main site configuration file as an example in the previous article. Let's review that again (system.site.yml):

Giới thiệu performance benchmark của PHP frameworks

Giới thiệu performance benchmark của PHP frameworks

There are many assumptions around performance of different PHP frameworks. I frequently hear strong opinions about superiority X over Y in this context.

Công ty diệt chuột T&C

 

Diet con trung