FOR LOOP STATEMENT :
#include<conio.h>
#include<stdio.h>
int main(){
int i=1; int j=1;
for(--i&&j++; i<10; i+=3){
printf(" loop = %d\t",i);
}
}
ans : loop = 0 loop = 3 loop = 6 loop = 9
#include<conio.h>
#include<stdio.h>
int main(){
int i=1; int j=1;
for(--i&&j++; i<10; i+=3){
printf(" loop = %d\t",i);
}
}
ans : loop = 0 loop = 3 loop = 6 loop = 9
Comments
Post a Comment