Conditional operator - Practice Exercises C# SharpPractice Exercises C# SharpPractice Exercises C# Sharp4,85320940
Conditional operator - Practice Exercises C# Sharp
Lesson 2:
Flow Control
Exercise 2.33:
Conditional operator
Objetive:
Create a program which assigns a integer variable "amountOfPositives" the value 0, 1 or 2, depending on the values of two numbers a & b (entered by the user).
Do it in two different ways: first using "if" and then using the "conditional operator" (?)
Source Code:
Exercisey
2.33