public class Main {
public static void main(String[] args) {
int a = 2345;
int b = a + 8;
int c = b / 3;
int d = c % 5;
int e = d * 5;
System.out.println(e);
}
}
NOTE:
- The output of this program will come 20.
- Used int as there is no decimal in the value.
- Didn't use Scanner as there was no need to take input from the user.
No comments:
Post a Comment