public class Solution {
public static void main(String[] args) {
int a, b;
a = 5; b = 2;
System.out.println(a + b);
hidden #10502603
Level 2
Could someone tell me where is my mistake thanks ?
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Kelly Reed
6 October 2020, 13:49
condition "varuables must be created and immediately assigned a value" is not being met.
Instead of int a,b;
use int a =42;
int b =47;
0
hidden #10602322
20 April 2020, 15:56
first check that b= 7 it is not 2 ok. now, U just do the addition where is product
0
Anthony Chalk
28 November 2019, 10:45
Assuming only the last condition isn't being met, add:
+1