what is the result of the following code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 11

what is the result of the following code ?

int x = 15; int y = 4; int result = x/y; System.out.prntln(result);

22nd Jun 2019, 1:00 PM
Boy Arya
Boy Arya - avatar
4 Answers
0
The answer is 3. Even though when you put it in a calculator its 3.75, but nonetheless the answer to this question is 3.
23rd Sep 2022, 5:39 AM
Lindsey Udeh
- 1
THX
13th Jun 2021, 6:48 PM
Mudassir Rehman
Mudassir Rehman - avatar
- 1
Help
13th Sep 2021, 9:00 AM
King Kamalesh
King Kamalesh - avatar
- 2
thnks for your help bro
22nd Jun 2019, 1:05 PM
Boy Arya
Boy Arya - avatar