Frac Mult Parse
If you wish to view the code only, check this page. You can click the links and it should open up in a notepad file.
class FracMultParse{
public static void main(String args[])
{
int FNum = Integer.parseInt(args[0]);
int FDen = Integer.parseInt(args[1]);
int SNum = Integer.parseInt(args[2]);
int SDen = Integer.parseInt(args[3]);
System.out.println("Here is some fraction crud for you.");
// Notice that words in quotes are printed out, variables are not in quotes.
System.out.println(FNum +"/"+ FDen + " multipled by " + SNum + "/" +SDen);
System.out.println("equals:");
System.out.println((FNum*SNum) +"/"+ (FDen*SDen));
}
}
No New Terms