Skip to content

Latest commit

 

History

History

0x01-variables_if_else_while

0x01. C - Variables, if, else, while 📚💡🔍🔄

This collection of C programs covers various topics, including variables, if-else statements, and loops. Each program serves as a small exercise to help you improve your C programming skills. Let's take a look at the completed tasks and their titles:

📝 Check if a Number is Positive or Negative

This program assigns a random number to the variable n each time it is executed and prints whether the number stored in n is positive, negative, or zero. 🚀🔢🤔

📝 Print the Last Digit of a Number

This program assigns a random number to the variable n each time it is executed and prints the last digit of the number stored in n. 🚀🔢👌

📝 Print the Alphabet in Lowercase

This program prints the lowercase alphabet in a single line, followed by a new line, using only the putchar function. 🚀🔠📄

📝 Print Lowercase and Uppercase Alphabets

This program prints the lowercase alphabet followed by the uppercase alphabet, all in a single line and separated by a new line, using only the putchar function. 🚀🔠🆙

📝 Print Alphabet Without 'q' and 'e'

This program prints the lowercase alphabet, excluding the letters 'q' and 'e', followed by a new line, using only the putchar function. 🚀🔠❌

📝 Print Single-Digit Numbers

This program prints all single-digit numbers in base 10 (from 0 to 9) in a single line, followed by a new line. 🚀🔢0️⃣9️⃣

📝 Print Single-Digit Numbers (No Char Variables)

This program prints all single-digit numbers in base 10 (from 0 to 9) in a single line, followed by a new line, without using character variables. 🚀🔢0️⃣9️⃣

📝 Print Alphabet in Reverse

This program prints the lowercase alphabet in reverse order, followed by a new line, using only the putchar function. 🚀🔠🔄

📝 Print Hexadecimal Numbers (Lowercase)

This program prints all numbers of base 16 (hexadecimal) in lowercase, followed by a new line, using only the putchar function. 🚀🔢🔡

📝 Print Combinations of Single-Digit Numbers

This program prints all possible combinations of single-digit numbers, separated by a comma and a space, in ascending order. 🚀🔢

📝 Print Combinations of Two Different Single-Digit Numbers

This program prints all possible combinations of two different single-digit numbers, separated by a comma and a space, in ascending order. 🚀🔢

📝 Print Combinations of Three Different Single-Digit Numbers

This program prints all possible combinations of three different single-digit numbers, separated by a comma and a space, in ascending order. 🚀🔢

📝 Print Combinations of Two Two-Digit Numbers

This program prints all possible combinations of two two-digit numbers, separated by a space and a comma, in ascending order. 🚀🔢


Detailed Explanations 📑

For detailed explanations of each step and the commands used, you can refer to the commit descriptions in the directory's commit history. Each commit message contains a clear description of the actions taken, including the relevant commands used in the terminal.

Feel free to explore and use these programs as a resource to enhance your C programming skills. Happy coding! 😊👩‍💻👨‍💻