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)
Available when: Unlimited - Due to: Unlimited
| 228 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)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.63.157
©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)
Available when: Unlimited - Due to: Unlimited
| 234 views
1 like 0 dislike
3 answers
[Exercise] Multichoice - asked Oct 19, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
Available when: 2017-10-18 09:00 - Due to: 2017-10-19 14:30
| 50 views
1 like 0 dislike
0 answers
[Resource] asked Jan 4, 2018 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
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)
Available when: Unlimited - Due to: Unlimited
| 113 views
3 like 0 dislike
5 answers
[Exercise] Coding (C) - asked Nov 30, 2017 in 2017-1 程式設計(一)AD by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 212 views
11,163 questions
132,617 answers
129,948 comments
3,823 users