当前位置:网站首页>99 multiplication table and inverted triangle 99 multiplication table
99 multiplication table and inverted triangle 99 multiplication table
2022-07-26 08:02:00 【Little thief [email】
# multiplication table
for i in range(1,10):
for j in range(1,i+1):
print(j,"*",i,"=",i*j,end="\t",sep="")#end="\t",\t Represents four spaces , One tab key ,sep="" Remove the interval
print("")

# Inverted triangle 99 multiplication table
for i in range(1,10):
if i==1:
print("")
if 1<i<10:
print(" "*7*(i-1),end="\t")
for j in range(i,10):
print(i,"*",j,"=",i*j,end="\t",sep="")
print("")

版权声明
本文为[Little thief [email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/201/202207181754401476.html
边栏推荐
猜你喜欢

JSP built-in object (implicit object)

Enterprise private network construction and operation and maintenance

Burp Suite-第五章 如何使用Burp Target

QT listview add controls and pictures

How to determine the authenticity of the website you visit -- certificate system

Use js to count the number of occurrences of each string in the string array, and format it into an object array.

Jmeter性能测试之命令行执行和生成测试报告

NFS service and Samba service deployment

Excel file parsing

Use of JMeter performance test to store response content to file listener
随机推荐
2021-11-09
JSP implicit object -- scope
The difference between FileInputStream and bufferedinputstream
Lambda and stream
线程崩了,为什么不会导致 JVM 崩溃呢?如果是主线程呢?
File parsing (JSON parsing)
Why is Google's internal tools not suitable for you?
Implementation class under map interface
Distributed system and distributed database system (Introduction)
Libevent custom event (asynchronous)
shardingjdbc踩坑记录
2022.7.22DAY612
WCF deployed on IIS
System architecture & microservices
Command line execution and test report generation of JMeter performance test
Burp Suite-第八章 如何使用Burp Intruder
utils 连接池
Wrong Addition
Summary of common methods of string
总结软件测试岗的那些常见高频面试题