three tasks

Vladyslav

New member
Joined
Sep 14, 2022
Messages
1
Programming Experience
Beginner
1. From the interval [–X, Z] (variables X and Z are entered from the keyboard), find the number of even
number of odd numbers. Display the result on the screen. Provide tooltips for
user Example: "Enter the values of X and Z!"
2. Calculate the value of expressions. The initial values of the variables t and k for each expression
are: t = 2 and k = 1. In the answer, indicate: the value and type of the result, the final value of the given
variables
a) t += ++k*2
b) t--%2 == ++k%2
c) (--t < ++k) ? -k : k
3. The interval [a, b] takes one of three values: [-30, 75], [50, 450], [170, 250].
Find the smallest even number and the largest even number.
 
Welcome to the forum.

I've moved your post under C# General Discussion since these seem to be general programming questions in your original post.

We will not do your homework/project for you. It will be up to you to do the work. You listed the tasks above. What have you done so far? What problem are you currently encountering? Show us your current code.
 
Back
Top Bottom