thenewboston

Java Programming Tutorial - 8 - Math Operators

Aug 22nd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class apples{
  4.    public static void main(String args[]){
  5.    
  6.       int girls, boys, people;
  7.       girls = 6;
  8.       boys = 3;
  9.       people = girls + boys; /*-, /, *, % are possible */
  10.       System.out.println(people);
  11.      
  12.    }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment