欢迎来我的博客

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 阅读(1791) 评论(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 阅读(1228) 评论(0) 推荐(0) 编辑

2020年3月24日

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

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

posted @ 2020-03-24 09:18 tylerwu 阅读(3074) 评论(0) 推荐(0) 编辑

用Javascript的while循环,打印九九乘法表

摘要: 用Javascript的while循环,打印九九乘法表 用Javascript的while循环: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>打印九九乘法表</title> <script type="text/javasc 阅读全文

posted @ 2020-03-24 09:17 tylerwu 阅读(1144) 评论(0) 推荐(0) 编辑

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

摘要: 用python的while循环,打印九九乘法表 自学习编程以来,有的时候,当时觉得会,但过一段时间,就忘了,现在想把一些学过的知识点,做个笔记,给自己一个知识的积累和日后的查询。 Python的while循环: # !/usr/bin/env python # -*- coding:utf-8 -* 阅读全文

posted @ 2020-03-24 09:16 tylerwu 阅读(1379) 评论(0) 推荐(0) 编辑

导航