1 like 0 dislike
#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
| 356 views

25 Answers

0 like 0 dislike
Hidden content!
**** * * **** *** ** * ***** **** ** ** ** *
answered by (240 points)
0 like 0 dislike
Hidden content!
* *** ** ** * ** *** *** * ** * * *
answered by (124 points)
0 like 0 dislike
Hidden content!
* * *** * * ** * **** * * ******* * ** ** *
answered by (224 points)
0 like 0 dislike
Hidden content!
* ** * * * * * ** * * * ******** * * *
answered by (136 points)
0 like 0 dislike
Hidden content!
* * * *** * * * *** * ** * * * **
answered by (236 points)
edited by
0 like 0 dislike
Hidden content!
**** * *** * * * * * * ** ** * ** ******
answered by (162 points)
0 like 0 dislike
Hidden content!
** * ** *** ** * ** * **** * * * * ** * *
answered by (131 points)
0 like 0 dislike
Hidden content!
** * * ** * *** ** ** ** ** * ** * * *
answered by (-38 points)
0 like 0 dislike
Hidden content!
** ** ** * **** **** * * *** *** * ** *
answered by (212 points)
0 like 0 dislike
Hidden content!
* * * *** **** ** *** * *** * ** ** ** *
answered by (100 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:34.204.180.223
©2016-2021

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
| 361 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
| 77 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
| 177 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
| 264 views
11,972 questions
154,630 answers
156,371 comments
4,246 users