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

 
Introducing an HTTP API for Drupal 8 Entity Queries

Giới thiệu HTTP API trong Drupal 8 Entity Queries 2016

Drupal 8 lays the foundation for building robust and flexible RESTful APIs quickly and efficiently.

Stanford Law School

Thiết kế Drupal site: Stanford Law School

Stanford Law School (SLS) wanted to migrate their unwieldy proprietary legacy CMS called Pentagram to Drupal. The primary reasons for the migration include:

Laptop Apple, tại sao không?

Laptop Apple, tại sao không?

Hiện nay, thương hiệu máy tính Apple đang phát triển mạnh mẽ tại thị trường Việt Nam. Càng ngày nó càng thu hút được sự chú ý cũng như chinh phục được nhiều khách hàng hơn.

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

 

Diet con trung