Skip to content

ConstintCreations/C-Calculator-Word-Counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9d1f0aa · · May 4, 2026

History

9 Commits
Apr 5, 2026
Apr 5, 2026
Apr 5, 2026
Apr 5, 2026
May 4, 2026
Apr 5, 2026
Apr 5, 2026
Apr 5, 2026
May 4, 2026

Repository files navigation

Calculator and Word Counter in C

This repository contains both a calculator and a word counter built in C.

Calculator

The calculator takes the inputs: double a, operator ('+', '-', '*' (or 'x'), or '/'), and double b, then performs the operation and outputs the answer.

You can either run the calculator and input numbers and operators when prompted, or input them as arguments like this:

calculator 21 x 4

Word Counter

The word counter counts the total number of lines and total number of words for a file. The file will automatically be defaultTest.txt, but a different file can be given through arguments like this:

word_counter file.txt

About

This repository contains both a calculator and a word counter built in C.

Resources

Stars

Watchers

Forks

Languages