闲得无聊,画一个圆吧
#include <iostream>
using namespace std;
int main() {
for( float y = 1.3 ; y >= -1.3 ; y -= 0.06 ){
for( float x = -1.3 ; x <= 1.3 ; x += 0.03 )
if( x*x + y*y <= 1.3 )
cout<<'*';
else
cout<<' ';
cout<<endl;
}
system("pause");
return 0;
}
输出内容
