当前位置:首页
> Luz 第2988页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论PROGRAMMING:Finding series
Input a positive integer n, calculate and output the sum of the first n terms of S.S = 1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 +…
PROGRAMMING:Finding twin primes
If the difference between two primes is 2, they are twin primes.Input two positive integers n and m, find all the twin p…
PROGRAMMING:Finding the value of piecewise function
For any input floating-point number x, use the following formula to calculate and print out the value of Y.###Input form…
PROGRAMMING:One step, two steps
You have to cross the river, but there is no bridge. There is only a stone road made of a row of stones. You can only cr…
PROGRAMMING:Campus construction
The campus is under construction. The road is the blood vessel of the campus. So the problem is, we now know the distanc…
PROGRAMMING:Invert array
Keyboard input multiple integers, with 9999 end, the number is not more than 30, will be stored in the array v. Then the…
PROGRAMMING:Letter frequency statistics
Input a string with arbitrary case, no more than 200 characters in length, count the frequency of letters a, B, C, D in…
PROGRAMMING:Output letters
Enter a positive integer n, and use the for loop statement to output the uppercase letter order (i.e. from a to Z), with…
PROGRAMMING:Looking for missing data
There are several numbers, the number is an integer starting from 0, the maximum value is not more than 299, the number…
PROGRAMMING:Print graphics
Enter the number of lines to print, and then print the specified pattern with spaces and asterisks.###Input format:Enter…