//sample solution
var i=0;
for(i=0; i<3; i++){
console.log(i);
}
while(i>0){
console.log(i);
i--;
}
do{
console.log(i);
i++;
}while(i<3);
var i=0;
for(i=0; i<3; i++){
console.log(i);
}
while(i>0){
console.log(i);
i--;
}
do{
console.log(i);
i++;
}while(i<3);
No comments:
Post a Comment