Yearly Archives | 2017

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 […]

League quadratic equation 2 ax² + bx + c = 0

Hello everyone, at all before we solve it most, this article we are going to solve the equation Career 2 nhé. Threads: League quadratic equation 2: ax² + bx + c = 0 (a ≠ 0) with a, b, c input from the keyboard We recall knowledge of the quadratic equation 2 with a ≠ 0 as follows: B1: calculate delta: D = […]