C Language algorithm

Source: Internet
Author: User

Select the sorting method: Compare the first number with the back number

    

Bubble Sort method: two-digit comparison of adjacent

        

01. Capitalize the first letter of the word & count the number of words

    

02: Write a function int pieadd (int n) and calculate the value of 1!+2!+3!+......+n! (n>=1). For example, the return value of Pieadd (3) is 1! + 2! + 3! = 1 + 1*2 + 1*2*3 = 9.

    

03-99 Multiplication Table

    

04-Determine how many primes are between 101-200 and the number of primes and primes. Program Analysis: The method of judging primes: to remove 2 to sqrt (this number) with a number, if divisible, indicates that the number is not a prime, and vice versa is a prime.

    

05-Rabbit Baby, the third number is the first two and. There are a pair of rabbits, from the 3rd month after the birth of a pair of rabbits every month, the small rabbit to the third month after the birth of a pair of rabbits, if the rabbit is not dead, ask each month the total number of rabbits?

The law of Rabbits is a series of 1,1,2,3,5,8,13,21....*

    

06-String Sorting

    

07: If a number is exactly equal to the sum of its factors, this number is called the "end number". For example, 6=1+2+3. Programming to find all the finished numbers within 1000.

    

C Language algorithm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.