当前位置:首页
> Luz 第2946页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论PROGRAMMING:How many are seven?
###DescriptionRead in a 4-digit integer from the keyboard and find out how many digits are 7###Input format:A 4-digit in…
PROGRAMMING:Set subtraction
Given two nonempty sets a and B, the elements of the set are positive integers within 30000, write a program to find a-b…
PROGRAMMING:Calculate factorial
Enter a non negative integer n to calculate its factorial. It is defined as:$$n! = \ left\{\begin{matrix}1 \; \; \; \;…
PROGRAMMING:Finding the area of a quadrilateral
Find the area of simple quadrilateral ABCD in plane coordinate system. A simple quadrilateral means that the edges only…
PROGRAMMING:Special Joseph problem
N children with numbers of 1... N play games. They form a circle clockwise according to the numbers, count the number fr…
PROGRAMMING:Calculating the square root of n
Heron method is a method used by ancient Greeks to calculate the square root of a number n. This method produces a serie…
PROGRAMMING:Calculate the approximate value of E
The exact value of E is equal to the sum of the following infinite sequences.$$ \frac{1}{0!} +\ frac{1}{1!}+\ frac{1}{2!…
PROGRAMMING:Nested loop format output
Input an N and output the figure in the following format, with 4 spaces after each number```00 1 0 1 2 0 1…
PROGRAMMING:Output a factor of a number
Input a positive integer n and output a list of all the positive factors of N. pay attention to the output format. Separ…
PROGRAMMING:Eight queens problem
People who can play chess are very clear: the queen can eat other pieces in the horizontal, vertical and diagonal lines…