0%

day12

while

for

do while

A typical while loop design looks like this:

​ get first value
​ while (value meets test)
​ {

​ process the value

​ get next value

​ }

A for loop doing the same thing would look like this:

​ for (get first value; value meets test; get next value)

​ process the value;

if(expression)

statement;

getchar()

putchar()

ctype.h

else if in C like elif in python

------------- The end -------------

Welcome to my other publishing channels