C programming lab solutions for Structured Programming Language course: salary and unit conversion, rectangle and circle area, swap, digit sum, reverse, currency notes and more. Beginner-friendly, undergraduate lab report with source code and sample output.
Solutions to 13 basic problems from the Structured Programming Language
course (Undergraduate, CSE) written in C. Topics covered: input/output with
scanf()/printf(), arithmetic operators, unit conversion, swapping, and
digit manipulation using the modulus operator.
| File | Problem |
|---|---|
| a_gross_salary.c | Gross salary from basic salary |
| b_distance.c | Convert km to meters, feet, inches, cm |
| ... | ... |
gcc a_gross_salary.c -o gross ./gross