Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Q3
  4. {
  5. public static void main(String[] args)
  6. {
  7. Scanner in = new Scanner(System.in);
  8. int x = in.nextInt();
  9. int y = 0;
  10. do
  11. {
  12. y += x;
  13. }while (x >= 50 && x <= 100);
  14.  
  15. System.out.println(y);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement