Zadanie112

Zadanie112



File Edit Search Markers Folding View Utilities Macros Plugins Help

oo^oo pmmm i^u

Q ©

O Zadanie112.java (D:\StraznikTeXasu\UMCS\java\Prog1\)

inęort java.io.*;.

public class Zadaniell2^.

public static voicl main(String[] argumenty) double x;.

Console konsolka = System.consoleO;.

System.out.println("PEogram oblicza sumę szeregu. ");.

x = Double.parseDouble(konsolka.readLine("Podaj x. "));.

if (x< -1 || x >1) {.

System.out.println("Bledne dane!");.

} else {.

System.out.println("Suma szeregu wynosi " + x/(l-x));.

>;■

// ALBO:.

if (Math.abs(x) < 1) {.

System.out.println("Suma szeregu wynosi " + x/(l-x));. } else {.

System.out.println("Bledne dane!");.

};•

}.

U

80


28,2 Ali



(java.none.Cp125Q)



Wyszukiwarka

Podobne podstrony:
17686 Zadanie21 File Edit Search Markers Folding View Utilities Macros Plugins Help □łńHS>^ ££$ 0
Zadanie51B File Edit Search Markers Folding View Utilities Macros Plugins Help □łńHS>^ ££$ 0 04-0
17686 Zadanie21 File Edit Search Markers Folding View Utilities Macros Plugins Help □łńHS>^ ££$ 0
80576 Zadanie51B File Edit Search Markers Folding View Utilities Macros Plugins Help □łńHS>^ ££$
Zadanie20 File Edit Search Markers Folding View Utilities Macros Plugins Help ££! OO^OO coe pmmm Q
Zadanie22 File Edit Search Markers Folding View Utilities Macros Plugins Help ££! oo^oo pmmm i^u Q
Zadanie51D File Edit Search Markers Folding View Utilities Macros Plugins Help O Zadanie51D.java
Zadanie19 1] jEdit - Zadaniel9.java^ File Edit Search Markers Folding View Utilities Macros Plugins
86132 Zadanie51C File Edit Search Markers Folding View Utilities Macros Plugins HelpO Zadanie51C.jav
Program File Edit Search Markers Folding View Utilities Macros Plugins Help fiS 0 04-0 0 : - tf
Program jEdit - Program_09.java File Edit Search Markers Folding View Utilities Macros Plugins Help

więcej podobnych podstron