![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||||||||||||||
|
Icon sizes: 256x256, 48x48, 32x32, 24x24, 20x20, 16x16 File formats: ICO, GIF, PNG, BMP ![]() ![]() ![]() ![]() Tags: heart icons xanga, icon maker shareware, animated valentines icons, linkbar icon, new aim iconAt first sight solution is obvious, but it is not so trivial, as it seems.Program Example; Var A, B, C: Real; A, B - for storage of arguments, C - result Begin Writeln (' Enter two numbers '); Readln (A, B); we Enter arguments from the keyboard If A> B Then C: = A Else C: = B; If A> B, result - A, differently result - B Writeln (C); we display result End. One more classical example: "On the set coefficients to solve a quadratic equation". This task is more difficult, therefore before writing program will make algorithm, having written it in the form of the flowchart. At first we enter coefficients, then we calculate a discriminant. Now there are two possibilities: or absence of the real radicals in case of a negative discriminant, or these radicals it is possible-taki to calculate and display all in case of a nonnegative discriminant (the case of equality of a discriminant to zero enters here, radicals - two, only they identical J). At algorithm record in the programming language it is necessary to consider that in a branch there is no"not one operation, and three, therefore it is necessary to apply the compound statement. Arithmetic expressions do not forget to write according to rules of language of Pascal. In the rest, this program is not more difficult previous. Program Sq1; Var A, B, C, D, X1, X2: Real; Begin Writeln (' Enter quadratic equation coefficients '); ![]()
| Copyright © 2009-2022 Aha-Soft. All rights reserved. |
|