Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  hw
Language: PASCAL
Code:
program sumup;
var i: integer;
    numerator, denominator: integer;
begin
    write('input numerator of a fraction: ');
    readln(numerator);
    writeln;
    write('input denominator of a fraction: ');
    readln(denominator);
    writeln;
    writeln('Your fraction is : ', numerator,'/', denominator);
    if numerator mod denominator =0 then 
     i:= numerator/denominator     
     else if 

    writeln('Your simplified fraction is : ', numerator,'/', denominator);
readln
end.
Comments: