int cinema,dvd,pc,total; double fractionCinema, fractionOther; fractionCinema=(cinema/total)*100;
So, when I run the code to display fractionCinema, it just gives me zeros. If I change all ints to paired, then this will give me what I'm looking for. However, I use cinema, a computer, and everything else, and they should display as ints, not decimals. What should I do?
source share