码迷,mamicode.com
首页 >  
搜索关键字:乘法口诀    ( 226个结果
打印乘法口诀表练习 Mul
public class Mul { public static void main(String[] args) { // 第一种方法 for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9...
分类:其他好文   时间:2014-07-22 23:10:55    阅读次数:270
JS乘法口诀表(一行代码)
(function(c){for(i=1;i<=9;i++){var s='';for(j=1;j<=i;j++){s+=i+'X'+j+'='+i*j+'\t';}c.debug(s);}})(console)...
分类:Web程序   时间:2014-06-14 12:56:33    阅读次数:216
乘法口诀
乘法口诀//com.js/*1: 十几乘十几 口诀:头乘头,尾加尾,尾乘尾。 例如: 12x12=? 运用口诀: 1,头乘头 1x1=1 2,尾加尾 2+2=4 3,尾乘尾 2x2=4 ...
分类:其他好文   时间:2014-06-06 07:43:10    阅读次数:579
六道题 : 1.设计一个函数,用来计算b的n次方 2.(n! = 1*2*3*4*...n) 3.(1! + 2! + 3! + 4! + ... + n!) 4.成绩 5. 数组中的元素逆序存放 6.九九乘法口诀
/*设计一个函数,用来计算b的n次方递归的2个条件:1.函数自己调用自己2.必须有个明确的返回值*/#includeintpow2(intb,intn);intmain(){intc=pow2(3,2);printf("%d\n",c);return0;}/*pow2(b,0)==1pow2(b,1...
分类:其他好文   时间:2014-05-28 15:33:39    阅读次数:418
python输出乘法口诀
for i in range(1,10): for j in range(1,i+1): print (" ".join(["%d*%d=%d" %(j,i,i*j)]))[root@miller qinbin]# python test.py 1*1=11*2=2 2*2=41*3=3 2...
分类:编程语言   时间:2014-05-26 20:34:16    阅读次数:388
用lead分析函数构造类似9*9乘法口诀的功能
今天又个兄弟求助,数据库里一个表有数据如下: no  name 1    a 2    b 3    c 4    d 如何用一个sql显示如下结果: ab ac ad bc bd cd 对于这种构造数据,是分析函数的强项,下面来做个试验: create table t (no number,name varchar(2)); insert into t va...
分类:其他好文   时间:2014-05-07 08:03:17    阅读次数:447
226条   上一页 1 ... 21 22 23
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!