欢迎来我的博客

2020年4月13日

用C语言的for循环,打印九九乘法表

摘要: 用C语言的for循环,打印九九乘法表 C语言: #include <stdio.h> int main(void) { int row, col; for (row = 1; row <= 9; row++) { for (col = 1; col <= row; col++) { printf(" 阅读全文

posted @ 2020-04-13 19:58 tylerwu 阅读(1821) 评论(0) 推荐(0) 编辑

用python的for循环,打印九九乘法表

摘要: 用python的for循环,打印九九乘法表 Python: #! /usr/bin/env python # -*- coding:utf-8 -*- for row in range(1, 10): for col in range(1,row + 1): print("%d * %d = %d" 阅读全文

posted @ 2020-04-13 19:53 tylerwu 阅读(1240) 评论(0) 推荐(0) 编辑

导航