Public feed #887163

Stuff

public text v1 · immutable
Raw Edit
·published 2008-02-01 04:22 UTC
rendered paste body
                                                                     
                                                                     
                                                                     
                                             

public class Assignment1 {

	/**
	 * @author Remy Baumgarten
	 * Assignment 1
	 */
	public static void main(String[] args) {
		
		int First = 5;
		int Second = 2;
		int Result = 0;
		
		Result = First + Second;
		System.out.println(First + " + " + Second + " = " + Result );
		
		Result = First - Second;
		System.out.println(First + " - " + Second + " = " + Result );		
		
		Result = First * Second;
		System.out.println(First + " * " + Second + " = " + Result );
		
		Result = First / Second;
		System.out.println(First + " / " + Second + " = " + Result );
		
		Result = First % Second;
		System.out.println(First + " % " + Second + " = " + Result );
		
		
		
	}

}