C language learning (four)

pro1: seeking qualified given set of integers

 

Available logical operators && second embodiment simplification

pro2: narcissistic number

Referring to the first method, the second method improvement: no mask, the first method is calculated from the number of high-power power, thus requiring mask, while the second method is calculated from the lows, to be more simple.

pro3: Print ninety-nine formulas table

tips: how to make the output of each row are aligned it?

(1) with a tab character \ t

(2) was added in a digital format footprint width control characters

         % NC, the effect is occupied when the n characters corresponding to the output variable width, fill the spaces left shortfall

         % -NC, right side up space

pro4: Statistics primes and summed

but! M = 1 to NA, positive solution

pro5: guessing game

 

pro6:

I and output j

Improve

pro7: Minimalist about points Fractional

pro8: read digital

pro9: find a continuous and

Released four original articles · won praise 0 · Views 42

Guess you like

Origin blog.csdn.net/qq_38681291/article/details/105295901