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 (16 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.
Image CAPTCHA
Enter the characters shown in the image.

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

 
How to fix Drupalgeddon2 vulnerability (CVE-2018-7600) in Drupal 7.x and 8.x

How to fix Drupalgeddon2 vulnerability (CVE-2018-7600) in Drupal 7.x and 8.x

We found many of these sites with malware uploaded into them, and malicious processes running off it (backdoors, crypto currency miners, etc.).

Drupal 7 Multi-sites on Ubuntu 10.04 LTS

Hướng dẫn tạo Drupal 7 Multi-sites trên Ubuntu 10.04 LTS

This tutorial starts from a scratch Ubuntu 10.04 LTS installation, in to a clean Drupal 7 mult-site installation. Here's what you need to get started:

Amazon gia tăng sản xuất Kindle Fire

Amazon gia tăng sản xuất Kindle Fire

Doanh số bán hàng mạnh mẽ của máy tính bảng Kindle Fire đã khiến Amazon phải tăng các đơn đặt hàng của mình, chứng minh rằng mọi người thực sự thích máy tính bảng giá rẻ.

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

 

Diet con trung