用C#写一个小九九乘法表
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleManyHellos...
用Python语言编程,使用双重循环语句输出“九九乘法表”。
for i in range(1, 10): # 控制行
for j in range(1, i+1): # 控制列
print(j, 'x', i, '=', j*i, sep='', end='\t') # end='\t'相当于每...
Python 九九乘法表打印
小练习
for i in range(1,10,1):
for j in range(1,i+1):
print("%s*%s=%s" %(j,i,i*j),end=" ")
print()
#打印结果
#1*1=1
#1*2=2 2*2=4
#1*3=3 2*3=6...
python2.7
for i in range(1,10): for j in range(1,i+1): print j,'x',i,'=',j*i,'\t', print '\n'print '\nDone'
python3.7
i = 1
while i<=9: j = 1 while j<=i...
编写Java程序,使用循环结构打印出九九乘法表
效果如下:
实现代码:
public class Multiplication99 {
public static void main(String[] args) {
for (int num1 = 1; num1 <=9; num1++) {
for (in...
/**
*
***
*****
打印如图金字塔
*=i*2-1
(竖)空格数=列数-1
*/
public class Circulate{
public static void main(String[] args){
int count = 3;
for (int i = 1; i <= count; i++) {
//控制...