Count the number of variables

Report a typo

Given the following code:


int i = 0, j = 0, k = 0;
String s = "s", str = "str";

Enter the number of declared variables in the code fragment.

For example, if you think that eight variables are here, enter the number:

8
Enter a short text
___

Create a free account to access the full topic