I dont know Pascal too well, but to me it looks like nested "if" statements.
If x>y , all the rest of it happens Since x is not greater than y, nothing happens. So x and y should remain the same (10,20) On Nov 17, 6:09 am, Vijay Khandar <vijaykhand...@gmail.com> wrote: > In the following Pascal Program segment what is the value of X after > the execution of the program segment? > > X:=10; Y:=20; > If X>Y,then if X<0 then X:=abs(X) else X:=2*X; > > Plz anyone explain............ -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.