Advertisement
vp0415

Ex5

Oct 5th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. public class Ex5 {
  2.  
  3.     public static void main(String[] args) {
  4.         int a = 1734;
  5.         int b;
  6.         b = a / 100;
  7.         System.out.println(b);
  8.         boolean c;
  9.         c = b % 10 == 7;
  10.         System.out.println(c);
  11.        
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement