docs
[mirrors/Programs.git] / java / prubeh.java
1 public class prubeh {
2 public static void line(int i) {
3 for(;--i>0;) {
4 System.out.print(" ");
5 }
6 System.out.println("+");
7 }
8
9 public static void main(String[] argv) {
10 //if(argv.length != 2) { System.out.println("Usage: java filem [int zoom] [outputfile]"); System.exit(0); }
11 float a=0, b=0, c=0;
12 for(int i = 0;i<=60;i++) {
13 a+=0.1;
14 b+=0.01;
15 c+=0.5;
16 line((int) Math.round( 50+(( Math.sin(a)+Math.sin(b)+Math.sin(c) )*20) ));
17 }
18 }
19 }
This page took 0.256311 seconds and 4 git commands to generate.