madhawaseeeee

tute1

Sep 8th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. public class Tute {
  2.  
  3.     public static void main(String[] args) {
  4.  
  5.         //System.out.println(Math.abs(-5));// 5
  6.        
  7.         int area = squareArea(10, 12);
  8.         //System.out.println("area of the floor is " +area);
  9.        
  10.        
  11.         int x=10;
  12.         System.out.println(x);
  13.  
  14.     }
  15.  
  16.     public static int squareArea(int width, int height) {
  17.         return width * height;
  18.     }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment