You are on page 1of 1

int f;

int c;
Scanner tastatura = new Scanner(System.in);
System.out.println ("Unesite stepene za pretvaranje: ");
f = tastatura.nextInt();
c=5*(f-32)/9;
System.out.println (f + " Stepeni faranhajta = " + c + " stepeni Celzijusa");
------------------------------------------------------------------------------
Scanner silla = new Scanner(System.in);
double prvi, drugi, odgovor;
System.out.println ("Upisi prvi broj: ");
prvi=silla.nextDouble();
System.out.println ("Upisi drugi broj: ");
drugi=silla.nextDouble();
odgovor=prvi+drugi;
System.out.println ("Odgovor je: " );
System.out.println (odgovor);
------------------------------------------------------------------------------

You might also like