zoukankan      html  css  js  c++  java
  • C语言绘制余弦函数图象

    1. #include"stdio.h"  
    2. #include"math.h"  
    3. void main()  
    4. {  
    5.     double y;  
    6.     int x,m;  
    7.     for(y=1;y>=-1;y-=0.1)  
    8.     {  
    9.         m=acos(y)*10;  
    10.         for(x=1;x<m;x++)  
    11.             printf(" ");  
    12.         printf("*");  
    13.         for(;x<62-m;x++)  
    14.             printf(" ");  
    15.         printf("*");  
    16.         printf(" ");  
    17.               
    18.     }  

    本文出自 “阿凡达” 博客,请务必保留此出处http://shamrock.blog.51cto.com/2079212/711613

  • 相关阅读:
    6.24Java网络编程之IP
    Network
    Network
    Network
    Network
    ES
    JavaWeb
    ES
    ES
    ES
  • 原文地址:https://www.cnblogs.com/umgsai/p/3908223.html
Copyright © 2011-2022 走看看