Skip to content

yadikedasu-afk/edasu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator Program

This project is a command-line calculator written in C.
It reads mathematical expressions from text files and evaluates them according to standard arithmetic rules.

Student Information

Name: Edasu Yadık
Student ID: 231AEB028
University: Riga Technical University (RTU)
Course: Programming Languages (C Lab)

Features

  • Supports addition (+), subtraction (-), multiplication (*), division (/), and power (**)
  • Handles parentheses correctly
  • Detects invalid expressions and division by zero
  • Can process a single input file or all .txt files in a directory
  • Automatically creates output files with the student’s name and ID

Usage

Compile

gcc -std=c11 -O2 -Wall -Wextra -o calc calc.c -lm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages