i need to write program that calculates when airplane is going to lend. i started to write this but i have got some problems pls help but when i tested minutes and seconds are not true

program airplane;
writeln('When will airplane airborn:');
writeln('How much time is airplane in the air:');
j:= ( ( a * 3600 ) + ( s * 60 ) + d + ( f * 3600 ) + ( g * 60 ) + h ) );
if j > 24 then writeln(

Re: Pascal problem Pls help 80 80

You prepare time as seconds but test it as it where hours at last partial line. Better not to say what I think of your variable names ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.