1 like 0 dislike
768 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 (31.4k points)
ID: 27642 - Available when: Unlimited - Due to: Unlimited
| 768 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:172.70.174.41
©2016-2023

Related questions

1 like 0 dislike
24 answers
[Exercise] Essay (Open question) - asked Oct 19, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (31.4k points)
ID: 27643 - Available when: Unlimited - Due to: Unlimited
| 814 views
1 like 0 dislike
3 answers
[Exercise] Multichoice - asked Oct 19, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (31.4k points)
ID: 27640 - Available when: 2017-10-18 09:00 - Due to: 2017-10-19 14:30
| 199 views
1 like 0 dislike
0 answers
[Resource] asked Jan 4, 2018 in 2017-1 程式設計(一)AD by 楊修俊 (31.4k 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 楊修俊 (31.4k points)
ID: 40751 - Available when: Unlimited - Due to: Unlimited
| 367 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
| 481 views
14,435 questions
231,450 answers
206,247 comments
5,485 users