Skip to content

samchan321/c-lang-exercises

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

The goal of the project is to practice the c lang with some exercises.

Pre-requisites

gcc linux

Project Setup

Step 1: Clone the project

git clone https://github.com/samchan2022/c-lang-exercises.git

Step 2: Compile and Run the program

Check runing the final program. You could understand how the program works cd c-lang-exercises ./compile_run.sh -d -f src/date_diff.c

Step 3: solve the questions

go to src and start working

mkdir ans

cd ans

Exercises

  1. Find the day difference bewteen two dates.

Requirements

  • Ask user to input 2 dates in either (dd-mm-yyyy or dd/mm/yyyy)
  • Let user to retry input date if the date is invalid
  • Consider leap year
  • name: date_diff.c

TODO

  1. Add test scripts

About

c lang practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 84.0%
  • Shell 16.0%