1 like 0 dislike
1.8k views
#include<stdio.h>

int main()
{
	int j,k;
	for(j = 1;j < 10;j ++)
	{
		for(k = 1;k < 10;k ++)
		{
			printf("%d * %d = %d ",j, k, j * k);
		}
		printf("\n");
	}
}

上面是一段用兩個for迴圈印出99乘法表的程式

請將程式改寫成只用一個for迴圈

[Exercise] Essay (Open question) - asked in 2017-1 程式設計(一)AD by (30k points)
ID: 27642 - Available when: Unlimited - Due to: Unlimited
| 1.8k views

25 Answers

0 like 0 dislike
Hidden content!
*** * ** * ** * * * * ** * ** * *
answered by (124 points)
0 like 0 dislike
Hidden content!
* * **** * * * *** * * * * * * ***
answered by (185 points)
0 like 0 dislike
Hidden content!
* ** * *** * *** * ********* * *** *
answered by (215 points)
edited by
0 like 0 dislike
Hidden content!
電機一 林献騰 ** * * * ** ** *** * ** ***** * *** * *
answered by (150 points)
0 like 0 dislike
Hidden content!
* *** *** ** * ** ** *** ** * * ******
answered by (164 points)
edited by
0 like 0 dislike
Hidden content!
* * *** * *** * * * *** ** * * * ******** * ****
answered by (190 points)
0 like 0 dislike
Hidden content!
** ******* *** * * *** ** * **** **** ** * ** *
answered by (228 points)
0 like 0 dislike
Hidden content!
** * * * ** *** ****** *** **** *** *** ** * ** ***
answered by (196 points)
0 like 0 dislike
Hidden content!
* * *** * * *** * * ** * * ** * * *
answered by (160 points)
0 like 0 dislike
Hidden content!
* ***** * * ** ** * ** * * * ***** ** *** ** * **
answered by (209 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.130.204
©2016-2025

Related questions

1 like 0 dislike
24 answers
[Exercise] Essay (Open question) - asked Oct 19, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
ID: 27643 - Available when: Unlimited - Due to: Unlimited
| 1.8k views
1 like 0 dislike
3 answers
[Exercise] Multichoice - asked Oct 19, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
ID: 27640 - Available when: 2017-10-18 09:00 - Due to: 2017-10-19 14:30
| 459 views
1 like 0 dislike
0 answers
[Resource] asked Jan 4, 2018 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
ID: 40762 - Available when: Unlimited - Due to: Unlimited
| 26 views
2 like 0 dislike
8 answers
[Exercise] Essay (Open question) - asked Jan 4, 2018 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
ID: 40751 - Available when: Unlimited - Due to: Unlimited
| 896 views
3 like 0 dislike
5 answers
[Exercise] Coding (C) - asked Nov 30, 2017 in 2017-1 程式設計(一)AD by Shun-Po (18k points)
ID: 34978 - Available when: Unlimited - Due to: Unlimited
| 1.4k views
12,783 questions
183,442 answers
172,219 comments
4,824 users