Click here to Skip to main content
15,912,897 members

Comments by raghupathirao (Top 1 by date)

raghupathirao 31-Jan-13 23:47pm View    
int a = 18 / 12;
int b = 18 % 12;

im getting output like this

a = 1
b = 6
but i want output like this
a = 1.5
b = 0