码迷,mamicode.com
首页 >  
搜索关键字:乘法表    ( 980个结果
使用shell编写九九乘法表,mysql分库备份
打印99乘法表: #!/bin/bash for num in `seq 9` do   for num1 in `seq 9`   do     if [ $num -ge $num1 ]
分类:数据库   时间:2018-02-13 15:37:09    阅读次数:215
流类库 输入输出
1、下面给出的程序用于打印九九乘法表,但程序中存在错误。请上机调试,使得此程序运行后,能够输出如下所示的九九乘法表。 源程序: #include <iostream.h> #include <iomanip.h> int main() { int i,j; cout<<"*"; for(i=1;i< ...
分类:其他好文   时间:2018-02-12 11:16:18    阅读次数:180
第三天习题
# count = 0 # for i in range(1, 9): # for v in range(1, 9): # if i != v: # count += 1 # print(count) #####print('',sep=,end=) sep 分割符 # 九九乘法表 # 法1 # f... ...
分类:其他好文   时间:2018-02-11 14:37:24    阅读次数:152
javaSE 打印九九乘法表
下面的示例用嵌套for循环打印一个九九乘法表 格式:for(){ for(){ } } 其实就是拿内层循环作为外层循环的循环体 package com.forfortest001; public class ForForTestDemo2 { //打印九九乘法表 public static void ...
分类:编程语言   时间:2018-02-11 14:35:56    阅读次数:132
关于hashcode 里面 使用31 系数的问题
首先我们来了解一下hashcode,什么是hashcode?有什么作用? hashcode其实就是散列码,使用hashcode使用高效率的哈希算法来定位查找对象! 我们在使用容器来存储数据的时候会计算一串散列码,然后将数据放入容器。 如:String s =“java”,那么计算机会先计算散列码,然 ...
分类:其他好文   时间:2018-02-07 14:38:48    阅读次数:165
初来乍到,写个99乘法表,试试播客效果
看了一下Python的最基本的语法,写了一个九九乘法表。具体代码如下: 执行效果图如下: ...
分类:其他好文   时间:2018-02-07 12:09:48    阅读次数:125
3.2Python while循环实例
实例1:输出100以内的奇数#-*-coding:utf-8-*-__date__=‘2018/2/517:10‘__author__=‘xiaojiaxin‘__file_name__=‘while1‘n=1whilen<=100:print(n)n+=2//打印奇数实例2:while……else……语句Python中的特殊结构:While条件:……else:……Else只有在循环正常结束
分类:编程语言   时间:2018-02-05 18:53:35    阅读次数:156
python输出九九乘法表
1、脚本如下 (1)倒三角格式的,注意行前的空格 for i in range(1,10): for j in range(i,10): print("%d*%d=%d" % (i,j,i*j),end=" ") print("") (2)长方形格式 for i in range(1,10): fo ...
分类:编程语言   时间:2018-01-31 20:15:28    阅读次数:1313
循环结构
1.格式:①初始化条件②循环条件③迭代部分④循环体 for(①;②;③){ ④} ①while(②){ ④ ③} ①do{ ④ ③}while(②); 注:1.不同的循环结构之间可以相互转换 2.while和do-while的区别:do-while程序至少会执行一次 2.嵌套循环:循环结构还可以声明 ...
分类:其他好文   时间:2018-01-30 12:50:52    阅读次数:133
[LeetCode] Kth Smallest Number in Multiplication Table 乘法表中的第K小的数字
Nearly every one have used the Multiplication Table. But could you find out the k-th smallest number quickly from the multiplication table? Given the ...
分类:其他好文   时间:2018-01-28 00:07:54    阅读次数:183
980条   上一页 1 ... 39 40 41 42 43 ... 98 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!