Skip to content

Commit d095f78

Browse files
committed
commit
1 parent 89572ca commit d095f78

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

ControlStatement/ConditionalStatement.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,38 @@ let college1 = 'Rv College Of Engineering';
241241

242242
for(let i =1; i<5;i++){
243243
console.log(college1);
244+
}
245+
246+
//let college2 = 'S N Sinha College'
247+
248+
//for(let i = 2; i<=6; i++){
249+
//console.log(college2);
250+
//}
251+
252+
let college3 = 'S N Sinha College1'
253+
for(let i = 0; i<=5;i++){
254+
console.log(college3);
255+
}
256+
257+
//While Loop
258+
//Used when you don't know how many times, but you loop until a condition becomes false.
259+
260+
let i = 1;
261+
262+
while (i <= 5) {
263+
console.log("Hi");
264+
i++;
265+
}
266+
267+
let i2 = 1;
268+
while(i2<=5) {
269+
console.log('Hello');
270+
i2++;
271+
}
272+
273+
274+
let i3= 1;
275+
while(i3<=5){
276+
console.log("Hello Kaise Hoo");
277+
i3++;
244278
}

0 commit comments

Comments
 (0)