Back

Write a code to get the input and print it 5 times. Input Description: A single line contains an integer N. Output Description: Output contains 5 lines with each line having the value N. Sample Input : 4 Sample Output : 4 4 4 4 4

Created 3 years ago
1470 Views
1 Comments
nagav
@nagav
nagav
@nagavProfile is locked. Login

const n=5;

for(let i=1;i<=n,i++){

console.log(4);

}

i think my code was wrong .could u help to solve this problem...

Comments
Please login to comment.