00:01
Hello, so for this question we need to write two small programs.
00:05
The first one is to check whether a number is positive negative or zero.
00:11
So the first step would be to ask the user for a number.
00:16
So enter a number and then we can read the number.
00:23
Intent equals as a next int.
00:30
This way we can read the number.
00:33
And now we can simply check whether it is smaller, is bigger, smaller, or equal to zero.
00:41
So if it's bigger than zero, we can print number is bigger than zero, else if n is equal to zero, we can print number is equal to zero, and else we can print number is smaller than zero.
01:21
And now we can test our leader program.
01:23
So if we enter 10, number is bigger than 0.
01:30
If we enter 0 is equal to 0, and if we enter minus 2, it's smaller than 0.
01:38
So our program works...