CJCoding With Joseph
15per day
TitleTopicsAction
29
Declare an IntDeclare an `int` variable named `count` with the value 10, then print it: 10...
easy○ Not Started
Variables
Solve
30
Declare a DoubleDeclare a `double` variable named `pi` with the value 3.14, then print it: 3.14...
easy○ Not Started
Variables
Solve
31
Declare a StringDeclare a `string` variable named `word` with the value "hello", then print it: ...
easy○ Not Started
Variables
Solve
32
Declare a BoolDeclare a `bool` variable named `isReady` with the value true, then print it (C#...
easy○ Not Started
Variables
Solve
33
Sum of Two Int VariablesTwo int variables `a` and `b` are given. Print their sum: 8...
easy○ Not Started
Variables
Solve
34
Difference of Two VariablesTwo int variables are given. Print the first minus the second: 7...
easy○ Not Started
Variables
Solve
35
Product of Two VariablesTwo int variables are given. Print their product: 42...
easy○ Not Started
Variables
Solve
36
Use var for Type InferenceThe `var` keyword lets C# infer the type from the value. Use `var` to declare a ...
easy○ Not Started
Variables
Solve
37
Declare a ConstantA `const` value cannot be changed after it is set. Declare `const int Max = 100;...
easy○ Not Started
Variables
Solve
38
Integer DivisionWhen both operands are ints, `/` does integer division (it drops the fractional ...
easy○ Not Started
Variables
Solve
39
Remainder with ModuloThe `%` operator gives the remainder of a division. Print the remainder of 17 di...
easy○ Not Started
Variables
Solve
40
Double DivisionIf at least one operand is a double, `/` keeps the decimal part. Print the resul...
easy○ Not Started
Variables
Solve
41
Reassign a VariableDeclare an int with value 5, then reassign it to 10, then print it: 10...
easy○ Not Started
Variables
Solve
42
Increment a VariableThe `++` operator adds 1 to a variable. Start with 5, increment it, then print i...
easy○ Not Started
Variables
Solve
43
Compound AssignmentThe `+=` operator adds a value to a variable. Start with 10, add 5 using `+=`, t...
easy○ Not Started
Variables
Solve
44
Average of Two NumbersTwo int variables are given. Print their (integer) average: 15...
easy○ Not Started
Variables
Solve
45
Cast a Double to an IntCasting a double to an int with `(int)` drops the decimal part (it truncates, no...
medium○ Not Started
Variables
Solve
46
Parse a String to an Int`int.Parse` converts a string of digits into an int. Parse "42" and print the va...
medium○ Not Started
Variables
Solve
47
Divide Ints as DoublesTo get a decimal result from two ints, cast one to double first. Print 7 divided...
medium○ Not Started
Variables
Solve
48
Store a Boolean ExpressionA comparison can be stored in a bool variable. Given x = 10, store whether x is ...
medium○ Not Started
Variables
Solve
49
Swap Two VariablesSwap the values of two int variables using a temporary variable, then print them...
medium○ Not Started
Variables
Solve
50
Parse a String to a Double`double.Parse` converts a decimal string to a double. Parse "3.5", add 1, and pr...
medium○ Not Started
Variables
Solve
51
Character to ASCII CodeCasting a `char` to an `int` gives its character code. Print the code for the le...
medium○ Not Started
Variables
Solve
52
Declare Several VariablesYou can declare several variables of the same type in one statement. Declare thr...
medium○ Not Started
Variables
Solve
53
Celsius to FahrenheitConvert a Celsius temperature to Fahrenheit using F = C * 9 / 5 + 32. Given cels...
medium○ Not Started
Variables
Solve