Sunday, March 8, 2009

Puzzle 5 – The Sign

Language – Java | Type – Concept | Last date 11-Mar-2009 9:00 p.m. IST | Points 2

Too many signs spoil the code …
package com.twisters;
public class Signs{
public static void main(String[] args) {
int result;
int a = 5, b =1;
result = a---b;
System.out.println("Value of a is : " + a);
System.out.println("Value of b is : " + b);
System.out.println("Value of result is : " + result);
}
}

Got an answer? Why don’t you leave it here.

No comments:

Post a Comment

Solution for this question?