Skip to content

Latest commit

 

History

History

0x02-functions_nested_loops

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

0x02-functions_nested_loops

Description

This project focuses on functions and nested loops in C. It covers how to define and use functions, how to use nested loops to perform repetitive tasks, 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
_putchar 0-putchar.c Writes a program that prints _putchar, followed by a new line.
I sometimes suffer from insomnia. And when I can't fall asleep, I play what I call the alphabet game 1-alphabet.c Writes a function that prints the alphabet, in lowercase, followed by a new line.
10 x alphabet 2-print_alphabet_x10.c Writes a function that prints 10 times the alphabet, in lowercase, followed by a new line.
islower 3-islower.c Writes a function that checks for lowercase character.
isalpha 4-isalpha.c Writes a function that checks for alphabetic character.
Sign 5-sign.c Writes a function that prints the sign of a number.
There is no such thing as absolute value in this world. You can only estimate what a thing is worth to you 6-abs.c Writes a function that computes the absolute value of an integer.
There are only 3 colors, 10 digits, and 7 notes; it's what we do with them that's important 7-print_last_digit.c Writes a function that prints the last digit of a number.
I'm federal agent Jack Bauer, and today is the longest day of my life 8-24_hours.c Writes a function that prints every minute of the day of Jack Bauer, starting from 00:00 to 23:59.
Learn your times table 9-times_table.c Writes a function that prints the 9 times table, starting with 0.
a + b 10-add.c Writes a function that adds two integers and returns the result.
98 Battery Street, the OG 11-print_to_98.c Writes a function that prints all natural numbers from n to 98, followed by a new line.
The World looks like a multiplication-table, or a mathematical equation, which, turn it how you will, balances itself 100-times_table.c Writes a function that prints the n times table, starting with 0.
Nature made the natural numbers; All else is the work of women 101-natural.c Writes a program that computes and prints the sum of all the multiples of 3 or 5 below 1024 (excluded), followed by a new line.
In computer class, the first assignment was to write a program to print the first 100 Fibonacci numbers. Instead, I wrote a program that would steal passwords of students 102-fibonacci.c Writes a program that prints the first 50 Fibonacci numbers, starting with 1 and 2, followed by a new line.
Even Liber Abbaci 103-fibonacci.c Writes a program that finds and prints the sum of the even-valued terms in the Fibonacci sequence whose values do not exceed 4,000,000, followed by a new line.
100 Fibonacci numbers 104-fibonacci.c Writes a program that finds and prints the first 98 Fibonacci numbers, starting with 1 and 2, followed by a new line.