+ 3
Write a program to print ###....nth times then n(n-1)(n-2)..........1.
take n as input n using one loop only. And all thr hash should print in next line eg: if n=3 then output will be:- # # # 3 2 1
9 Respostas
+ 4
wong
@Salekin
please reread the question n required output...
+ 3
yes now output is correct
but i want this code in java language...
can u plz??
+ 3
wow #kamakshi...
gd
+ 3
can u plz elaborate it?
for me
+ 1
@Sahil Luthra, I didn't get the q. correctly.
Anyway, I've updated the code.
https://code.sololearn.com/cR9lSjPNC5hq
+ 1
check this..I gave a try
https://code.sololearn.com/cjSa7bZqpVC2/?ref=app
0
Here's the code in ruby
https://code.sololearn.com/cR9lSjPNC5hq
0
Thank you for your encouragement
0
take a input eg: 3 the question is first 3 times print # and next 3 times decrement the n and print
so total print counts is double , so I took t=n+n
then loop repeats and t decrements, first 3 times as t>n print # and the remaining counts print the number