当前位置:首页
> Luz 第2943页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论PROGRAMMING:4.21 - display a square pattern with an integer as the side length
Write a program to show the square with the length of the input integer as the side.-----From exercise 4-21```Make a squ…
PROGRAMMING:4.18 - display integer values with * signs, 5 for each line
Write a program, input an integer value, display the "*" of the integer value. Wrap every 5 lines displayed.-----From ex…
PROGRAMMING:4.19 - display all divisors and the number of divisors
Write a program to modify code listing 4-15, and display the number of divisors after displaying all divisors of the int…
PROGRAMMING:4.22 - input the length of both sides and draw a rectangular pattern
Modify the program in listing 4-17 to show a long rectangle in the horizontal direction.* read the length of two sides,…
PROGRAMMING:4.25 - inverted pyramid of output layers
Write a program to show the downward pyramid shape of the input integer layer as shown below.Line I shows the result of…
PROGRAMMING:4.24 - draw a pyramid
Write a program, input an integer, such as the right to show the pyramid shape of the input integer layer.Tip: line I sh…
PROGRAMMING:Calculation of shadow area based on inclusion exclusion principle
The inclusion exclusion principle is an important combinatorial method, which allows you to solve sets of any size, or c…
PROGRAMMING:Thinking problems of little H
Let's start with a thinking problem. Here are four integers, $$a, B, x, y $$. At the beginning, $$a / Ge x $$and $$B / G…
PROGRAMMING:Small h-cent candy
Little h came to a primary school to divide candy. The pupils were very obedient and stood in a row waiting to divide ca…
PROGRAMMING:Little h likes to sleep
Xiao h likes to sleep very much. On this day, he got up and saw that it was 9.30, and he promised to go to Xiao w's hous…