Bài toán tính x^y với x, y là số thực trong Pascal

Bài toán tính x^y với x, y là số thực trong Pascal

Tính x^y ( Với x, y là số thực).

Đáp án

Program X_LUYTHUA_Y;

Uses crt;

Var x,y,z:real;

Begin

Writeln(‘TINH X LUY THUA Y:’);

Writeln('----------------------------------');

Write('Nhap x = '); readln(x);

Write('nhap y = '); readln(y);

If x>=0 then

   Begin

         z:=exp(y*ln(x));

         Writeln('x ^ y = ',z:4:2);

   End

   Else

   Writeln('Khong tinh duoc do x la so am');

Readln;

End.
Bạn thấy bài viết này như thế nào?: 
Average: 8.9 (17 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

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

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

 
Phần 3 tạo Images responsive của Responsive Theme trong Drupal 7

Phần 3 tạo Images responsive của Responsive Theme trong Drupal 7

The recipe also details steps to create a quick responsive image gallery and a responsive banner slideshow.

Hình mẫu vắcxin phòng COVID-19

Vắcxin phòng bệnh COVID-19 do Đại học Oxford nghiên cứu

Giới chức y tế Anh cho biết vắcxin phòng bệnh COVID-19 do Đại học Oxford nghiên cứu, phát triển đã bắt đầu được thử nghiệm trên người từ ngày 23.4.2020

Microsoft, Windows Phone 8, Window, windows 8

Microsoft chính thức giới thiệu Windows Phone 8

Microsoft đã công bố chi tiết về Windows Phone 8 tại Hội nghị Windows Phone Summit diễn ra vào rạng sáng nay (21/6).

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

 

Diet con trung