2uzhan.com
Advertisement
Now Place:2uzhan.com » Java and Psuedo Code

Java and Psuedo Code

PHP @ February 5, 2001   Views:0

This question isn't for a class I'm teaching myself Java but I have a Java book and it has this question in it. Could someone explain the answer to me? here it is:
IF X LESS THAN Y
PRINT "X is less"
ELSE
PRINT "X is more"

BTW I need this in Psuedo and in Java so could someone help me? It'd be great help I'm trying to teach myself this but it's not working =0) thanks in advance =0)

--------------Solutions-------------

1) pseudo code is a bad idea invented by people who were too lazy to use rulers for their flow charts :)

2)
if(x<y)
System.out.println("x is less");
else
System.out.println("x is more");

3) uh, this isn't php...

if(x<=y)
System.out.println("x is less");
System.out.println("x is more");

Tags:
© 2018 2uzhan.com Contact