Skip to content

Instantly share code, notes, and snippets.

@ProZhar
Created December 7, 2015 08:18
Show Gist options
  • Select an option

  • Save ProZhar/eb7aae340b35a00affdf to your computer and use it in GitHub Desktop.

Select an option

Save ProZhar/eb7aae340b35a00affdf to your computer and use it in GitHub Desktop.
com.javarush.test.level10.lesson11.home03
package com.javarush.test.level10.lesson11.home03;
/* Правильный ответ: d=1.0
Добавить одну операцию по преобразованию типа, чтобы получался ответ: d=1.0.
*/
public class Solution
{
public static void main(String[] args)
{
int a = 257;
int b = 4;
int c = 3;
int e = 2;
double d = (byte)a + b/c/e;
System.out.println(d);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment