How to add d to this? I have a,b,c only.
Because I tried many ways and with d it works wrong
and showing wrong highest number
i tried to add if(d>a)... but this was wrong too

if(a>b)
then if(a>c)
then max :=a
else max:=c

else if (b>c)
then max:=b
else max:=c

writeln('the highest is...',max);

Be a part of the DaniWeb community

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