ycannot / C-Examples-1

There are some simple example projects which are written in C in this repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C Examples 1

example1.c: C program that prints the the minimum, sum and average of three numbers entered by the user.

example2.c: C program that gets two numbers and a symbol for an operation (+, -, *, /). It does the corresponding operation.

example3.c: C program that will get the grade value from the user, and determine the corresponding letter grade and reports writes it on the screen.

example4.c: C program for a music shop. The program will prompt to enter the purchase total and whether the purchaser is a music teacher. Music teachers receive a 10% discount if purchase is less than $100 and a 12% discount if purchase is 100 and higher. Then add a %5 sales tax and print all the calculations.

About

There are some simple example projects which are written in C in this repository.


Languages

Language:C 100.0%