论文部分内容阅读
这是一道打印 N 行变化的、由数字组成的等腰三角形的字符图形题。打印格式与打印 N 行由“*”字符组成的等腰三角形一佯,此处不再重复叙述。本题特殊的地方是打印输出项为从0~9顺序变化的数字,程序中用变量 X存放打印输出项的值,变量 X 的值加1之后仍赋给变量 X 并打印输出,当变量 X 的值为10时重新赋值为0后打印输出,以后变量 X 的值继续按原来的规律变化并打印输出。
This is a printed N-line change, composed of digital isosceles triangle character graphics. Print format and print N-line by the “*” character isosceles triangle tentacles, here no longer repeat. This problem is a special place printout items from 0 to 9 changes in the sequence of numbers, the program stored in the variable X value of the printout entry, the value of the variable X is still assigned to a variable X and print the output, when the variable X The value of 10 reassigned to 0 after the print output, the value of the variable X continue to change according to the original law and print the output.