0x01. C - Variables, if, else, while
Description
What you should learn from this project:
- What are the arithmetic operators and how to use them
- What are the logical operators (sometimes called boolean operators) and how to use them
- What the the relational operators and how to use them
- What values are considered TRUE and FALSE in C
- What are the boolean operators and how to use them
- How to use the if, if … else statements
- How to use comments
- How to declare variables of types char, int, unsigned int
- How to assign values to variables
- How to print the values of variables of type char, int, unsigned int with printf
- How to use the while loop
- How to use variables with the while loop
- How to print variables using printf
- What is the ASCII character set
- What are the purpose of the gcc flags -m32 and -m64
- This program will assign a random number to the variable n each time it is executed. Complete the source code in order to print whether the number stored in the variable n is positive or negative.
- This program will assign a random number to the variable n each time it is executed. Complete the source code in order to print the last digit of the number stored in the variable n.
- Write a program that prints the alphabet in lowercase, followed by a new line.
- Write a program that prints the alphabet in lowercase, and then in uppercase, followed by a new line.
- Write a program that prints the alphabet in lowercase, followed by a new line.
- Write a program that prints all single digit numbers of base 10 starting from 0, followed by a new line.
- Write a program that prints all single digit numbers of base 10 starting from 0, followed by a new line.
- Write a program that prints the lowercase alphabet in reverse, followed by a new line.
- Write a program that prints all the numbers of base 16 in lowercase, followed by a new line.
- Write a program that prints all possible combinations of single-digit numbers.
- Write a program that prints the numbers from 00 to 99.
- Write a program that prints all possible different combinations of two digits.
- Write a program that prints all possible different combinations of three digits.
- Write a program that prints all possible combinations of two two-digit numbers.
Author