Archive | TUT thinking exercise programming

Analysis prime factors

Threads: Analyze some achievements of the prime factors With this article you need to recall the prime factors is and how to analyze a number of prime factors. Integrate the prime factor is the multiplication between the numbers together in which all numbers are primes. Example: 10 = 2 * 5. In that 2 and […]

Introducing series programming thinking exercises

I've pretty much guide you to learn programming, however many you thinking not so good to solve the problem. You usually do not think is the form that is to do this, there must be something. Ie when experiencing a completely new post, you can not or very difficult to solve it. So I wrote the series […]

Exercise bank earnings

Exercise bank deposits and bank interest are downright practical exercises but also helps programmers thinking abilities very high. This article we are going to learn some lessons about it. Threads: One savers no limit to the amount a period at an interest rate 0.3% every month. Asked after n months, that person will be drained of money, […]

Point classmates

Threads 1: Enter a list of classmates. Print the biggest screen in the classroom Based on the assignment we can determine this is the problem of finding the largest number in the array (has been mentioned in all the biggest search). To do this, we first need to enter is the list points – ie import array. We want to import array […]

Password checking program

Threads: Write a program that checks the user password when logging. Users must log in to when the correct username and password out loud. (username and password defined in the program) In reality, You will encounter this problem a lot when building software, wesbite that log function. So this problem is extremely helpful. First […]

Calculate the area of ​​a circle circumference

Threads: Enter the radius of the circle. Calculate the circumference and area of ​​a circle which offer all quite clear and there is nothing to discuss more. Thing you have to do is remember the formula for the circumference and area of ​​a circle. I have the following formula: So the formula has. Now we just code formula. In the code above, the […]

Calculate the factorial n!

Threads: Write a program to calculate n! n is a natural number no sound input from the keyboard To do this, First you need to recall the formula n! skin. By definition we have factorial: 0! = 1 n! = 1.2.3…n What is the formula we have already. Looking at the formula we see with n = 0 it's easy, if n> 0 then […]

Calculate the sum of the numbers from 1 to 100

Threads: Calculate the sum of the numbers from 1 to 100 Hello everyone, if the total 2 numbers a and b, it is quite simply the then, however, to calculate the total number of consecutive multiple threads all we like how? We found that the nature of the numbers 1 to 100 is continuous so we can use loops to perform […]

Superlative solving equations ax + b = 0

Threads: Superlative solving equations ax + b = 0 (other a 0) With the coefficients a, b is entered from the keyboard. To solve this, you recall the mathematical knowledge we have learned of the ordinary. Due to a different 0 so we always have x = -b experimental / a. So easy and, formula has, only now just code. Simple […]

Find the largest number of 3 number

Hello everyone, surely you know how to find the greatest among 2 numbers a and b. We only have to compare a to b, larger number, then take it alone. But with 3 of a, b, c then why? Threads: Enter 3 integer a, b, c from the keyboard, Please print out the largest number of 3 which. Simple way that you can […]