FREE PASCAL一問

大家看看:

Program division;

uses crt;

var a, b , c : real;

begin

clrscr;

write('Input Num 1 :');

readln(a);

writeln('Input Num 2 :');

readln(b);

c := a/b;

writeln('The quotient of ',a,' and ',b,' is ',c,'.');

writeln('The quotient of ',a:0:0,' and ',b:0:0,' is ',a*b:0:2,'.');

readln;

end.

我想問問: a*b:0:2個0字點解? 後個2字我就識解,解小數點後的位,請盡快回答我個0字點解。

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 1QUIZZ.COM - All rights reserved.