QUOTE(PennyBoki @ 6 Oct, 2007 - 11:39 AM)

jack85 you should show us some effort in code so that we could help.
CODE
/*
* Fraction.java
*
* Created on October 6, 2007, 8:39 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
/**
*
* @author Hakob
*/
import java.util.*;
import java.io.*;
public class Fraction
{
public Fraction()
{
}
public static int gcd(int num, int Num)
{
if (num % Num == 0)
{
return Num;
}
else
{
return gcd(Num, num % Num);
}
}
public static void main(String[] args)throws IOException
{
int Number;
InputStreamReader reader = new InputStreamReader(System.in);
BufferedReader input = new BufferedReader(reader);
System.out.println("Enter your first number");
String choice = input.readLine();
int num = Integer.parseInt(choice);
System.out.println(num);
System.out.println("Enter your second number");
String number = input.readLine();
int Num = Integer.parseInt(number);
System.out.println(Num);
num = num + Num;
System.out.println("Sum " +num);
}
}
This post has been edited by PennyBoki: 6 Oct, 2007 - 01:32 PM