Giammy
1) var i,n,k,x:integer; a:array[1..100] of integer; begin Write('Write x: '); readln(x); If x<0 then writeln('Left') else if x=0 then writeln('Midl') else writeln('Right'); readln end. 2) var v1,v2:longint; begin Write('Write two speeds: '); readln(v1,v2); If (v1*1000/3600)<v2 then writeln('V2') else if v1*1000/3600=v2 then writeln('v1=v2') else writeln('v1'); end.
Answers & Comments
var i,n,k,x:integer;
a:array[1..100] of integer;
begin
Write('Write x: '); readln(x);
If x<0
then writeln('Left')
else
if x=0
then writeln('Midl')
else writeln('Right');
readln
end.
2)
var v1,v2:longint;
begin
Write('Write two speeds: '); readln(v1,v2);
If (v1*1000/3600)<v2
then writeln('V2')
else
if v1*1000/3600=v2
then writeln('v1=v2')
else writeln('v1');
end.