Skip to content

Files

0x04-more_functions_nested_loops

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 18, 2023
Aug 18, 2023
Aug 18, 2023
Aug 19, 2023
Aug 19, 2023
Aug 19, 2023
Aug 26, 2023
Aug 19, 2023
Aug 25, 2023
Aug 19, 2023
Aug 18, 2023
Aug 19, 2023
Aug 18, 2023
Aug 19, 2023
Aug 18, 2023
Aug 19, 2023
Aug 19, 2023
Aug 19, 2023
Aug 19, 2023
Aug 19, 2023
Aug 19, 2023
Aug 19, 2023
Aug 19, 2023
Aug 19, 2023
Oct 13, 2024
Aug 18, 2023
Aug 24, 2023

0x04-more_functions_nested_loops

Description

This project focuses on more advanced usage of functions and nested loops in C. It covers how to create and use functions to perform specific tasks, how to use nested loops for complex iterations, and how to apply these concepts to solve problems effectively.

Resources

Read or watch

Learning Objectives

General

  • What are nested loops and how to use them.
  • What is a function and how do you use functions.
  • What is the difference between a declaration and a definition of a function.
  • What is a prototype.
  • Scope of variables.
  • What are the gcc flags -Wall -Werror -pedantic -Wextra -std=gnu89.

Tasks

Task Name File Description
isupper 0-isupper.c Writes a function that checks for uppercase character.
isdigit 1-isdigit.c Writes a function that checks for a digit (0 through 9).
Collaboration is multiplication 2-mul.c Writes a function that multiplies two integers.
The numbers speak for themselves 3-print_numbers.c Writes a function that prints the numbers, from 0 to 9, followed by a new line.
I believe in numbers and signs 4-print_most_numbers.c Writes a function that prints the numbers, from 0 to 9, followed by a new line, except 2 and 4.
Numbers constitute the only universal language 5-more_numbers.c Writes a function that prints 10 times the numbers, from 0 to 14, followed by a new line.
The shortest distance between two points is a straight line 6-print_line.c Writes a function that draws a straight line in the terminal.
I feel like I am diagonally parked in a parallel universe 7-print_diagonal.c Writes a function that draws a diagonal line in the terminal.
You are so much sunshine in every square inch 8-print_square.c Writes a function that prints a square, followed by a new line.
Fizz-Buzz 9-fizz_buzz.c Writes a program that prints the numbers from 1 to 100, followed by a new line, but for multiples of three prints Fizz instead of the number and for the multiples of five prints Buzz. For numbers which are multiples of both three and five prints FizzBuzz.
Triangles 10-print_triangle.c Writes a function that prints a triangle, followed by a new line.
The problem of distinguishing prime numbers from composite numbers and of resolving the latter into their prime factors is known to be one of the most important and useful in arithmetic 100-prime_factor.c Writes a program that finds and prints the largest prime factor of the number 612852475143, followed by a new line.
Numbers have life; they're not just symbols on paper 101-print_number.c Writes a function that prints an integer.