Surface area and volume of a sphere
Sphere formulas · Algorithm, explained code, sample run and viva answers.
I SEMESTER · C PROGRAMMING · PRACTICAL LAB
All 16 prescribed exercises, fully worked.
From the first formula to complete records.
Each exercise has an aim, key definition, input format, algorithm, source code, sample output, explanation, extra test cases and viva answers. Use the same source online or download it for your own compiler.
CHOOSE YOUR NEXT EXERCISE
Part A covers numbers, selection, arrays and matrices. Part B covers strings, pointers, functions and records.
16 programs shown.
0 of 16 marked as practised. Stored only in this browser.
Sphere formulas · Algorithm, explained code, sample run and viva answers.
Maximum · Algorithm, explained code, sample run and viva answers.
Mathematical library · Algorithm, explained code, sample run and viva answers.
Numeric palindrome · Algorithm, explained code, sample run and viva answers.
Switch selection · Algorithm, explained code, sample run and viva answers.
One-dimensional result arrays · Algorithm, explained code, sample run and viva answers.
Duplicate removal · Algorithm, explained code, sample run and viva answers.
Element-wise matrix operations · Algorithm, explained code, sample run and viva answers.
C string length · Algorithm, explained code, sample run and viva answers.
String library · Algorithm, explained code, sample run and viva answers.
Pointer access · Algorithm, explained code, sample run and viva answers.
Prime number · Algorithm, explained code, sample run and viva answers.
Trace of a matrix · Algorithm, explained code, sample run and viva answers.
Matrix multiplication · Algorithm, explained code, sample run and viva answers.
Character classification · Algorithm, explained code, sample run and viva answers.
Student record · Algorithm, explained code, sample run and viva answers.
No programs match. Try a shorter search or select All programs.
Read the algorithm → write or edit the code → run the sample → test a different case → explain the output. Mark Practised when you have worked through the exercise yourself.
The grade and student-result solutions state their practice rules explicitly. Adapt those rules when your college prescribes different bands or pass marks.