English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

if i add an int to a double what would the output be?
example?
int x=6 ;
double y=3.4;
System.out.println(x+y);

also, what is the output of this:
int x=10 , y=12;
system.out.print(x | y);

2006-10-01 15:00:11 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

double

10/12=0

2006-10-01 15:04:28 · answer #1 · answered by iyiogrenci 6 · 0 0

try yourself and see

2006-10-01 16:05:21 · answer #2 · answered by howsureyouare 3 · 0 0

fedest.com, questions and answers