Skip to content

Instantly share code, notes, and snippets.

@avanege
Created August 12, 2012 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avanege/3332345 to your computer and use it in GitHub Desktop.
Save avanege/3332345 to your computer and use it in GitHub Desktop.
Programma8
// Тип double
/* Страница 75 */
class Programma8
{
public static void main(String args[])
{
double evro, dolar, funts; // Тип double(двойная точность) требует использования 64 бит информации.
evro = 51.10;
dolar = 32.75;
funts = 60.23;
System.setOut(new PrintStream(System.out, true, "cp866"));
System.setErr(new PrintStream(System.err, true, "cp866"));
System.out.println(evro + "Опачки");
System.out.println(dolar);
System.out.println(funts);
System.out.println("");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment