THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

Category: Exercise

Telephone charges

Threads: Write a program for telephone charges for a household with the following parameters: Mandatory subscription fee is 25 thousand. 600 for each call contract 50 first minute. 400 copper per minute call 150 The next minute. 200 Council for any

triangle

Threads: Write a program to 3 number a, b, c. Check if a, b, c Is 3 edge of the triangle is not? If 3 edge of the triangle, the triangle area calculation formula: where p is half the perimeter of the triangle. Input: One

Days of month

Threads: Please enter a number that 1 the month of the year, print see how many days of the month. Regarded as the month 2 always 28 day. Input: An integer. Output: Number of days in a month. If the month is invalid, then print out “NOT FOUND”. For example 1: input: 1

Max 4

Threads: Input 4 integer, find and print out the largest number of 4 number. Input: A line containing 4 integers separated by spaces. Output: Some of the largest number of 4 number. For example: input: 4 2 6 5 output: 6

Max 2

Threads: Input 2 integer, find and print out the largest number of 2 number. Input: A line containing 2 integers separated by spaces. Output: Some of the largest number of 2 number. For example: input: 4 3 output: 4

Max 3

Threads: Input 3 integer, find and print out the largest number of 3 number. Input: A line containing 3 integers separated by spaces. Output: Some of the largest number of 3 number. (I've added 3 test case for this article, các bạn đã làm qua

Globular

Threads: Write a program to the radius of the sphere, calculate and print area, volume of the sphere which. Know the formula for calculating the area and volume respectively: S = 4πR^2 và V = (4/3)πR^3. Lay π = 3.14 Input: Some of the radius of the sphere. Head

Day month Year

Threads: Write a program that reads from the keyboard 3 perform integer day, month, and output to the screen in the form of "dd / mm / yyyy". Input: A line of 3 integers separated by a space. Output: A string in the format date: dd / mm / yyyy Example: input: 5 6