Repetition
Repetition in c used to makes shapes, search, sort and many kind of things.Example :
-4
-3
-2
-1
0
Output :#include <stdio.h>void main(){int j;j = -4;for( ; j <= 0 ; ){printf("%d\n", j);j = j + 1;}}
-4
-3
-2
-1
0
Comments
Post a Comment