C语言味程序百例.docVIP

  • 4
  • 0
  • 约9.51千字
  • 约 14页
  • 2017-02-06 发布于湖北
  • 举报
C语言趣味程序百例绘制余弦曲线public class test1{ public static void main(String args[]) {double y; double x, m; for (y=1;y-1;y-=0.1) { m= Math.acos(y) * 10; for (x = 1; x m; x++) System.out.print( ); System.out.print(*); for (; x 62 - m; x++) System.out.print( ); System.out.println(*); } } } C语言趣味程序百例绘制圆public class test3{ public static void main(String args[]) {double y; double x, m; for(y=10;y=-10;y--){ m=2*Math.sqrt(100-y*y); for(x=1;x30-m;x++) System.out.print( ); Sy

文档评论(0)

1亿VIP精品文档

相关文档