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
| 100 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 (110 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:162.158.78.70
©2016-2019

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
| 99 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
| 41 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
| 80 views
3 like 0 dislike
22 answers
[Exercise] Coding (C) - asked Nov 16, 2017 in 2017-1 程式設計(一)AD by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 115 views
9,100 questions
79,739 answers
55,635 comments
2,475 users