码迷,mamicode.com
首页 >  
搜索关键字:乘法表    ( 980个结果
算法-99乘法表
99乘法表 //99乘法表的程序 int[] num = new int[10]; for (int i = 0; i < 10; i++) { num[i] = i; } Console.ForegroundColor = ConsoleColor.Red; for (int ...
分类:编程语言   时间:2016-03-20 17:25:28    阅读次数:166
99乘法表
昨晚做的99乘法表,两个for循环倒都能想到,问题卡在print/println输出格式控制了,最后一搜问题也是解决了。 Java代码如下: 放一个传送门:http://www.cnblogs.com/IT-Computer-TcpIp/p/4944047.html 虽然不是很懂,相信以后会懂得。M
分类:其他好文   时间:2016-03-18 10:42:00    阅读次数:134
打印九九乘法表
#!/bin/bashfor((i=1;i<=9;i++))dofor((j=1;j<=i;j++))dolet"temp=i*j"echo-n"$j*$i=$temp"doneecho""done
分类:其他好文   时间:2016-03-17 02:09:40    阅读次数:139
用shell编程实现打印九九乘法表
方法1,写一个for循环:#!/bin/bashecho"Thisisthemultipletable."for((i=1;i<=9;++i))dofor((j=1;j<=i;j++))doecho-ne"$i*$j=$((i*j))\t"doneechodone方法2:使用for循环(a.sh)#!/bin/shforiin{1,2,3,4,5,6,7,8,9}doforjin{1,2,3,4,5,6,7,8,9}do((product=$i*$j))echo..
分类:系统相关   时间:2016-03-15 17:18:33    阅读次数:405
SQL-语句实现九九乘法表
    下面用while 和 if 条件写的SQL语句的四种九九乘法表  sql语句实现--x 左下角九九乘法表 sql语句实现--X 右下角九九乘法表 sql语句实现--9X9右上角 sql语句实现--9X9左上角  
分类:数据库   时间:2016-03-13 08:56:12    阅读次数:227
循环语句(2)
for的嵌套 //99乘法表 for (int a = 1; a <= 9; a++)-----控制行 { for (int i = 1; i <= a; i++)------控制列 { Console.Write(i + "*" + a + "=" + (a * i) + "\t"); } Con
分类:其他好文   时间:2016-03-10 23:42:50    阅读次数:548
小程序--九九乘法表
class Alhh{ public static void main(String[] args){ for(int i=1;i<=9;i++){//一共有9行 for(int j=1;j<=i;j++){//每行有i个等式 System.out.print(i+"*"+j+"="+i*j+" "
分类:其他好文   时间:2016-03-09 20:43:31    阅读次数:129
SQL-语句实现九九乘法表
下面用while 和 if 条件写的SQL语句的四种九九乘法表 sql语句实现--x 左下角九九乘法表 DECLARE @I INT ,@J INT,@S VARCHAR() SET @I= WHILE @I< BEGIN SET @J= SET @S='' WHILE @J<=@I BEGIN S
分类:数据库   时间:2016-03-09 09:24:34    阅读次数:331
使用while循环语句和变量输出九九乘法表
-设置变量ideclare @i int --设置变量jdeclare @j int --设置乘法表变量declare @Multiplication Table varchar(500)--给i,j,@Multiplication Table赋初始值select @i=9,@j=1,@Multip
分类:其他好文   时间:2016-03-07 18:40:20    阅读次数:737
九九乘法表[递归]
#include <iostream> using namespace std; void draw(int n,int x) { if(x<=n) { cout<<n<<"*"<<x<<"="<<n*x<<" "; draw(n,x+1); } } void draw(int n) { if(n>
分类:其他好文   时间:2016-03-06 23:37:51    阅读次数:131
980条   上一页 1 ... 78 79 80 81 82 ... 98 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!