package com.js.ai.modules.pointwall.interfac;

import java.awt.Font;

import javax.print.attribute.standard.MediaName;

import org.apache.poi.ss.usermodel.Color;

public class TestXinXing {

	/*public static void main(String argv[]){
//实现1个心型
for(float y = (float) 1.5;y>-1.5;y -=0.1)
{
for(float x= (float) -1.5;x<1.5;x+= 0.05)
{
float a = x*x+y*y-1;
if((a*a*a-x*x*y*y*y)<=0.0)
{ System.out.print("*"); }
else
System.out.print(" ");
}
System.out.print("\n");
}
} */
/* public static void main(String argv[]){
//实现2个心型,实现n个心型
for(float y = (float) 1.5;y>-1.5;y -=0.1)
{
for(float x= (float) -1.5;x<1.5;x+= 0.05)
{
float a = x*x+y*y-1;
if((a*a*a-x*x*y*y*y)<=0.0)
{
if(Math.abs(x+0.100000712)<=1e-6 && Math.abs(y-0.6999998)<=1e-6)
{
System.out.print("F");
continue;
}
if(Math.abs(x+0.050000306)<=1e-6 && Math.abs(y-0.6999998)<=1e-6)
{
System.out.print("r");
continue;
}
if(Math.abs(x+-3.0621885E-7)<=1e-6 && Math.abs(y-0.6999998)<=1e-6)
{
System.out.print("a");
continue;
}
if(Math.abs(x-0.049999695)<=1e-6 && Math.abs(y-0.6999998)<=1e-6)
{
System.out.print("n");
continue;
}
if(Math.abs(x-0.100000001)<=1e-6 && Math.abs(y-0.6999998)<=1e-6)
{
System.out.print("I L Y");
continue;
} System.out.print("*"); }
else
System.out.print(" ");
} for(float x= (float) 1.5;x<4.5;x+= 0.05)
{
float a = (x-3)*(x-3)+y*y-1;
boolean flag = false;
if((a*a*a-(x-3)*(x-3)*y*y*y)<=0.0)
{
if(Math.abs(x-3+0.100000712)<=1e-6 && Math.abs(y-0.6999998)<=1e-6)
{
System.out.print("C");
flag = true;
continue;
}
if((Math.abs(x-2.9499986)) <= 1e-6 && Math.abs(y-0.6999998)<=1e-6 )
{
System.out.print("a");
continue;
}
if(Math.abs(x-2.9999986)<=1e-6 && Math.abs(y-0.6999998)<=1e-6)
{
System.out.print("s");
continue;
}
if(Math.abs(x-3.0499985)<=1e-6 && Math.abs(y-0.6999998)<=1e-6)
{
System.out.print("i");
continue;
}
if(Math.abs(x-3.0999985)<=1e-6 && Math.abs(y-0.6999998)<=1e-6)
{
System.out.print("o");
continue;
} System.out.print("*"); }
else
System.out.print(" ");
} System.out.print("\n");
}
}*/
public static void main(String[] args) {
//99乘法表
//外层循环控制行数,9行。
//内存循环控制列数、数量。
for(int i=1;i<=9;i++)
{
for(int j=1;j<=i;j++)
{
System.out.print(i+"*"+j +"=" +(i*j) +"\t");
}
//换行显示
System.out.println();
}
}
}

  

最新文章

  1. Shell_2 语句
  2. MYSQL中UNIX时间戳与日期的转换
  3. Java Socket编程
  4. Bootstrap_让Bootstrap轮播插件carousel支持左右滑动手势的三种方法
  5. 【python】继承时注意事项
  6. grails下的httpclient
  7. Diskpart挂载/卸载VHD
  8. Linq使用GroupBy筛选数据
  9. Microsoft Visual C++ Runtime Library Runtime Error解决的方式
  10. 定时任务之crontab命令
  11. Java环境配置小记
  12. 454ITS数据按barcode和primer分类程序v1.0
  13. BindingResult 作用原理
  14. chip8模拟器的python3实现-2-指令介绍
  15. Python学习(二十四)—— 前端基础之Bookstrap
  16. linux下用php将doc、ppt转图片
  17. mybatis教程1(基本使用)
  18. Ubuntu 16.04卸载一些不必要的预装软件
  19. poj3279(dfs+二进制枚举思路)
  20. JMeter接口&amp;性能测试

热门文章

  1. Java之引用类型分析(SoftReference/WeakReference/PhantomReference)
  2. HDU 1033
  3. 高并发异步uwsgi+web.py+gevent
  4. 在FP与DDD的道路上越走越远
  5. 数据库备份mysqldump
  6. hiredis处理zscan和hscan的reply
  7. Ubuntu 12.04 LTS 安裝无线网卡驱动
  8. 考研系列 HDU2241之早起看书 三分
  9. AngularX 路由总结
  10. shell编程--遍历目录下的文件