#import <stdio.h> int main(void) { int sum,i; sum = 0; for(i=0;i<10;i++){ if(i%2) continue; sum+=i; } printf("\n%d",sum); return 0; }
How does if(i%2) works in the above code?
if(i%2)
Aucun commentaire:
Enregistrer un commentaire