Advertisement
Blonk

Untitled

Dec 5th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         double x;
  8.  
  9.         System.out.println("x");
  10.         System.out.println("------");
  11.  
  12.         for (x = -10; x <= 10; x = x+0.5){
  13.             System.out.println(x);
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement