Advertisement
IanO-B

Untitled

Dec 5th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public class Main {
  2.  
  3. public static void main(String[] args) {
  4. System.out.println("x y ");
  5. System.out.println("-------------------------");
  6. for(double i=-10.0; i<=10.0; i+=0.5){
  7. System.out.println(i+" "+(i*i));
  8. }
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement