Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

# Find Maximum Number

## Project Description

This project is a C program that demonstrates how to find the maximum number between two user-provided integers using user-defined functions. It highlights the concepts of:

  • Function declaration and definition
  • Parameter passing
  • Conditional statements
  • Return values

## Getting Started

  1. Prerequisites:

    • A C compiler (e.g., GCC, Clang)
    • A text editor or IDE
  2. Compilation:

    • Open a terminal and navigate to the project directory.
    • Compile the program using your C compiler:
      gcc find_max.c -o find_max
  3. Execution:

    • Run the executable:
      ./find_max

## Usage

  1. The program will prompt you to enter two numbers.
  2. Enter the numbers and press Enter.
  3. The program will calculate and display the maximum number.

## File Structure

  • find_max.c: Contains the source code of the program
  • README.md (this file): Provides project information and instructions

## Functions

  • int find_max(int num1, int num2): Takes two integer arguments and returns the larger one.

## Author

kingzykesh

## License

MIT

About

Program to find Maximum Number using user-defined functions in C Language

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages