Assign a random number to n
and tell if n
is positive
, negative
or 0
.
Assign a random number to n
and tell if the last digit of n
is greater than 5
, is 0
or less than 6 and not 0
.
Print the alphabet in lowercase followed by a new line using putchar
twice.
Print the alphabet in lowercase then uppercase followed by a new line
using putchar
three times maximum.
Print all possible combination of single-digit numbers:
- separated by
,
and a space - in ascending order
- using
putchar
four times maximum
Print all possible different combinations of two digits:
- separated by
,
and a space 01
and10
are considered the combination- only the smallest combination of two digits
- in ascending order, with two digits
- using
putchar
five times maximum
Print all possible different combinations of three digits:
- separated by
,
and a space - the three digits must be different
012
,120
,102
,021
,201
,210
are considered the same combination- only the smallest combination of three digits
- printed in ascending order, with three digits
- only use
putchar
six times maximum
Print all possible different combinations of two two-digits:
- numbers should range from 0 to 99
- the two numbers should be separated by a space
- numbers should be printed with two digits
- separated by
,
and a space - in ascending order
00 01
and01 00
are considered as the same combination- using
putchar
eight times maximum