Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. package pbo;
  2. import java.util.Scanner;
  3. public class ProgramInputOutput020 {
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6. System.out.print("Input BilBul n: ");
  7. int n = sc.nextInt();
  8. for(int i=1;i<=n;i++){
  9. if(i%5==0){
  10. break;
  11. }
  12. System.out.println(i);
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement