Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Pharmacy Invoice Program

This repository contains a C program for generating a pharmacy invoice based on a selected medicine and purchased quantity.

Files

  • pharn.c - Main source file implementing input validation, medicine selection, calculation logic, and formatted invoice output.
  • .gitignore - Ignores generated directories and editor settings.

Usage

  1. Compile with your C compiler, for example:
    gcc pharn.c -o pharn.exe
  2. Run the program and follow the prompts.

Notes

  • Quantity must be greater than 0, otherwise the program prints Invalid quantity.
  • Discounts apply only when quantity is greater than 100.
  • Output formatting uses exactly two decimal places as required.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages