Java
1
2
3
4
5
6
7
8
9
|
public class Main {
public static void main(String[] args) {
double num1 = 80.50;
double num2 = 22.34;
double sum = num1+num2;
System.out.printf("%10.2f%10.2f%10.2f", num1, num2, sum);
}
}
|
cs |