0
Hi everyone,plz i need help from anyone to check if this program is writthen correctly

{

    A program to read two values A and B and print the highets value

}

Val A

:

integer

;

Val B:integer

;

Begin A

:

 =10

;


   B:=12

;


   if A

>

     B then
   begin
   writeln 

(



'

   A is highest value

'



)


   end;
   if B

>

  A then
   writeln 

(



'

   B is highest value

'



)

End

.

Edited by joejodre: I omitted something

2
Contributors
2
Replies
3
Views
4 Years
Discussion Span
Last Post by joejodre
0

tanx bt its a pascal program...so is the c++ code applicable?? bcz i dnt knw abt c++

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.