public class Exer4 {
public static void main(String[] args) {
char a = '3';
char b = '4';
char c = '2';
int resultat;
resultat = a*b/c;
System.out.println("Result of "+a+"*"+b+"/"+c+" = "+ resultat);
}
}
結果を 6 (3 * 4/2 であるため) にしたいのですが、そうではありません。