Professional Documents
Culture Documents
CSE101-lec#12: Designing Structured Programs Introduction To Functions
CSE101-lec#12: Designing Structured Programs Introduction To Functions
Created By:
Amanpreet Kaur &
Sanjeev Kumar
LPU CSE101 C Programming SME (CSE) LPU
Outline
Designing structured programs in C:
Counter-controlled repetition
Sentinel-controlled repetition
Top down design and stepwise refinement
Type conversion
Functions(prototype and definition)
Sentinel Controlled
Counter Controlled
OR
Enter grade, -1 to end: -1
No grades were entered
long double
double
float
long int
signed int
int
char
(type) operand;
main
worker4 worker5
1 4 9 16 25 36 49 64 81 100