Posted by Joyenna on Monday, March 7, 2011 at 6:04am.
I think you need to suggest some code first for us to comment on.
import java.util.Scanner;
public class Q3 {
public static void main(String[] args) throws Exception
{
int A,B,C,D;
String result;
Scanner reader= new Scanner(System.in);
System.out.print("Enter value A : ");
A=reader.nextInt();
System.out.print("Enter value B :");
B=reader.nextInt();
System.out.print("Enter value C :");
C=reader.nextInt();
if (A>B)
D=A;
A=B;
B=D;
{
System.out.println("Results is ");
}
}
}
Related Questions
JAVA PROGRAMMING - "POWERS" Compute the power of a number given the ...
java - Write the following methods and test them.this need to be execute it in ...
Java - Is there a method in Java in which to see if an integer value contains ...
computer - this isnt really a school question but i have a question about the ...
Computer Science-Java - Hi, I have to write a method that returns my first name...
Computer Science-Java - Hi, I am writing an application class for a Lunar ...
Java - I am trying to write an algorithm for my JAVA class and am having some ...
JAVA - simple java program to retrive data from oracle database between specific...
Java help please - I am trying to run the following program and am getting this ...
Computer Sciene-java - Write a loop that will continuously prompt the user for ...
For Further Reading