Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class targil5
- {
- static Scanner reader = new Scanner(System.in);
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- int length;
- int weidth;
- System.out.println("enter length");
- length = reader.nextInt();
- System.out.println("enter weidth");
- weidth = reader.nextInt();
- System.out.println(length);
- System.out.println(weidth);
- System.out.println("hikef - " +(length+weidth)*2);
- System.out.print("setah - " + length*weidth );
- if (length == weidth)
- {
- System.out.println(" square");
- }
- else
- {
- System.out.println(" Not square");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment