-->
当前位置:首页 > Luz 第2946页
Luz

Luz 管理员

暂无介绍

89860 篇文章 33 次评论

PROGRAMMING:How many are seven?

Luz5年前 (2021-05-10)348
###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

Luz5年前 (2021-05-10)402
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

Luz5年前 (2021-05-10)503
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

Luz5年前 (2021-05-10)458
Find the area of simple quadrilateral ABCD in plane coordinate system. A simple quadrilateral means that the edges only…

PROGRAMMING:Special Joseph problem

Luz5年前 (2021-05-10)391
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

Luz5年前 (2021-05-10)502
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

Luz5年前 (2021-05-10)420
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

Luz5年前 (2021-05-10)442
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

Luz5年前 (2021-05-10)433
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

Luz5年前 (2021-05-10)418
People who can play chess are very clear: the queen can eat other pieces in the horizontal, vertical and diagonal lines…