- 15
Fill in the blanks to print the sum of two variables.
16 Respuestas
+ 26
/*
Show me the blanks :/
*/
+ 3
Ans is (+)
+ 2
sum
+
+ 2
sum = a + b
+ 1
What is the value of x after a B object is created?
+ 1
0
Hdbbd
0
int res=a+b
0
how to declare a variable sum equal to the sum of a and b:
0
Fill in the blanks to declare a variable sum equal to the sum of a and b:
int
Type
= a
Type
b;
0
Fill in the blanks to create a valid program that declares two variables and outputs their sum.
Program {
public static void
(String[] args) {
int a = 8;
int b = 4;
System.
.println(a
b);
}
}
0
public
Program {
public static void
main
(String[] args) {
int a = 8;
int b = 4;
System.
out
.println(a
b);
}
}
- 1
Int result= x + y
System.out.println(result)
- 1
Fill in the blank to declare a variable sum equal to the sum of a and b: int____=a___b
- 4
Sum equals a plus (+) so take either variable and put a + between to find the sum. Then tske that snd add the sum value to a result variable then display it
- 7
int x = 2; int y = 4;
int result = x
;
System.out.println(
);