Question: Question 1 ( 1 0 MARKS ) : Write a C# program that checks if a given number is positive, negative, or zero using if

Question 1(10 MARKS):
Write a C# program that checks if a given number is positive, negative, or zero using if-
else statements.
Expected Output:
Input: 5 Output: Positive
Input: -3 Output: Negative
Input: 0 Output: Zero
Question 2(10 MARKS)::
Modify the following pseudocode to include an else-if statement to check if the age is
between 13 and 17, printing "Teenager" in that case:
if (age >=18)
Console.WriteLine("Adult");
else
Console.WriteLine("Not an adult");
Plz answer this questions ASAP i really need it thank you so much for help me.
Question 1 ( 1 0 MARKS ) : Write a C# program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!