Pyramid

Input:
$n
$с

Just print left-tilted pyramid with length==$n, that is composed of symbols $c

IN

1
3

OUT

3

IN

2
l

OUT

l
ll

IN

3
#

OUT

#
##
###

IN

99
*

OUT

*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
*********************
**********************
***********************
************************
*************************
**************************
***************************
****************************
*****************************
******************************
*******************************
********************************
*********************************
**********************************
***********************************
************************************
*************************************
**************************************
***************************************
****************************************
*****************************************
******************************************
*******************************************
********************************************
*********************************************
**********************************************
***********************************************
************************************************
*************************************************
**************************************************
***************************************************
****************************************************
*****************************************************
******************************************************
*******************************************************
********************************************************
*********************************************************
**********************************************************
***********************************************************
************************************************************
*************************************************************
**************************************************************
***************************************************************
****************************************************************
*****************************************************************
******************************************************************
*******************************************************************
********************************************************************
*********************************************************************
**********************************************************************
***********************************************************************
************************************************************************
*************************************************************************
**************************************************************************
***************************************************************************
****************************************************************************
*****************************************************************************
******************************************************************************
*******************************************************************************
********************************************************************************
*********************************************************************************
**********************************************************************************
***********************************************************************************
************************************************************************************
*************************************************************************************
**************************************************************************************
***************************************************************************************
****************************************************************************************
*****************************************************************************************
******************************************************************************************
*******************************************************************************************
********************************************************************************************
*********************************************************************************************
**********************************************************************************************
***********************************************************************************************
************************************************************************************************
*************************************************************************************************
**************************************************************************************************
***************************************************************************************************

IN

12
.

OUT

.
..
...
....
.....
......
.......
........
.........
..........
...........
............
Login to submit solution


57 symbols perl failed test 1 Wrong answer

                      
instead of
3
Wed Jul 30 03:20:48 2014 vik
$n=<>;chop$n;$c=<>;chop$c;for$i(1..$n){print$c x $i."\n"}
51 symbols perl failed test 1 Wrong answer

                      
instead of
3
Wed Jul 30 15:29:26 2014 vik
$n,$c=<>;chomp$n,$c;for$i(1..$n){print$c x $i."\n"}
48 symbols perl failed test 1 Wrong answer

                      
instead of
3
Wed Jul 30 15:29:58 2014 vik
$n,$c=<>;chomp$c;for$i(1..$n){print$c x $i."\n"}
37 symbols perl failed test 1 Code error

syntax error at ./code line 1, near ")print" Execution of ./code aborted due to compilation errors.

Wed Jul 30 18:45:09 2014 vik
($n,$c)=<>;for(1..$n)print$c x$_."\n"
35 symbols perl failed test 1 Code error

Bareword found where operator expected at ./code line 1, near ""\n"for1" (Missing operator before for1?) syntax error at ./code line 1, near ""\n"for1" Execution of ./code aborted due to compilation errors.

Wed Jul 30 18:58:37 2014 vik
($n,$c)=<>;print$c x$_."\n"for1..$n
33 symbols python2 failed test 1 Code error

File "./code", line 2 ($n,$c)=<>;print$c x$_for 1..$n ^ SyntaxError: invalid syntax

Thu Jul 31 13:58:33 2014 vik
#!/usr/bin/python2.7 -l
($n,$c)=<>;print$c x$_for 1..$n
52 symbols python3 failed test 1 Code error

File "./code", line 2 for i in (1,n+1): print c*i ^ SyntaxError: invalid syntax

Thu Jul 31 14:01:10 2014 vik
n,c=int(input()),input()
for i in (1,n+1): print c*i
53 symbols python3 failed test 1 Wrong answer
3
33
instead of
3
Thu Jul 31 14:01:31 2014 vik
n,c=int(input()),input()
for i in (1,n+1): print(c*i)
51 symbols python3 failed test 1 Wrong answer
3
3
instead of
3
Thu Jul 31 14:01:52 2014 vik
n,c=int(input()),input()
for i in (1,n): print(c*i)
32 symbols perl failed test 2 Wrong answer
lll
instead of
l
ll
Mon Aug 4 18:12:35 2014 LLcoolNJ
($n,$c)=<>;print$c x$_ for 1..$n
71 symbols python2 failed test 2 Wrong answer
l
l l
instead of
l
ll
Fri Aug 8 02:54:06 2014 PFischbeck
r=raw_input
a,b=int(r()),r()
for x in range(a):print' '.join([b]*(x+1))
39 symbols ruby2.0 failed test 2 Wrong answer
lll
instead of
l
ll
Sun Oct 5 19:49:23 2014 fl00r
1.upto(gets.to_i){|i|$><<($l||=gets)*i}
39 symbols ruby2.0 failed test 1 Wrong answer
33
instead of
3
Sun Oct 5 19:50:25 2014 fl00r
#!/usr/bin/ruby2.0 -p
1.upto($_.to_i){|i|$><<($l||=gets)*i}
48 symbols bash failed test 4 Wrong answer
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
instead of
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
*********************
**********************
***********************
************************
*************************
**************************
***************************
****************************
*****************************
******************************
*******************************
********************************
*********************************
**********************************
***********************************
************************************
*************************************
**************************************
***************************************
****************************************
*****************************************
******************************************
*******************************************
********************************************
*********************************************
**********************************************
***********************************************
************************************************
*************************************************
**************************************************
***************************************************
****************************************************
*****************************************************
******************************************************
*******************************************************
********************************************************
*********************************************************
**********************************************************
***********************************************************
************************************************************
*************************************************************
**************************************************************
***************************************************************
****************************************************************
*****************************************************************
******************************************************************
*******************************************************************
********************************************************************
*********************************************************************
**********************************************************************
***********************************************************************
************************************************************************
*************************************************************************
**************************************************************************
***************************************************************************
****************************************************************************
*****************************************************************************
******************************************************************************
*******************************************************************************
********************************************************************************
*********************************************************************************
**********************************************************************************
***********************************************************************************
************************************************************************************
*************************************************************************************
**************************************************************************************
***************************************************************************************
****************************************************************************************
*****************************************************************************************
******************************************************************************************
*******************************************************************************************
********************************************************************************************
*********************************************************************************************
**********************************************************************************************
***********************************************************************************************
************************************************************************************************
*************************************************************************************************
**************************************************************************************************
***************************************************************************************************
Wed Jul 27 06:22:23 2016 hidefromkgb
read n;read c;while((n--));do l+=$c;echo $l;done
49 symbols bash failed test 4 Wrong answer
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
code input starter
instead of
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
*********************
**********************
***********************
************************
*************************
**************************
***************************
****************************
*****************************
******************************
*******************************
********************************
*********************************
**********************************
***********************************
************************************
*************************************
**************************************
***************************************
****************************************
*****************************************
******************************************
*******************************************
********************************************
*********************************************
**********************************************
***********************************************
************************************************
*************************************************
**************************************************
***************************************************
****************************************************
*****************************************************
******************************************************
*******************************************************
********************************************************
*********************************************************
**********************************************************
***********************************************************
************************************************************
*************************************************************
**************************************************************
***************************************************************
****************************************************************
*****************************************************************
******************************************************************
*******************************************************************
********************************************************************
*********************************************************************
**********************************************************************
***********************************************************************
************************************************************************
*************************************************************************
**************************************************************************
***************************************************************************
****************************************************************************
*****************************************************************************
******************************************************************************
*******************************************************************************
********************************************************************************
*********************************************************************************
**********************************************************************************
***********************************************************************************
************************************************************************************
*************************************************************************************
**************************************************************************************
***************************************************************************************
****************************************************************************************
*****************************************************************************************
******************************************************************************************
*******************************************************************************************
********************************************************************************************
*********************************************************************************************
**********************************************************************************************
***********************************************************************************************
************************************************************************************************
*************************************************************************************************
**************************************************************************************************
***************************************************************************************************
Wed Jul 27 06:25:12 2016 hidefromkgb
read n;read c;while((n--));do l=$l$c;echo $l;done
105 symbols bash failed test 1 Code error

./code: line 1: syntax error near unexpected token `do' ./code: line 1: `read n;read c;while((n--));do if [ $n -gt 3 ]; do l+=$c;echo $l; else echo "c = $c, l = '$l'"; done; done'

Wed Jul 27 06:27:39 2016 hidefromkgb
read n;read c;while((n--));do if [ $n -gt 3 ]; do l+=$c;echo $l; else echo "c = $c, l = '$l'"; done; done
105 symbols bash failed test 1 Wrong answer
c = 3, l = ''
instead of
3
Wed Jul 27 06:28:31 2016 hidefromkgb
read n;read c;while((n--));do if [ $n -gt 3 ]; then l+=$c;echo $l; else echo "c = $c, l = '$l'"; fi; done
105 symbols bash failed test 4 Wrong answer
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
c = *, l = ''
code input starter
code input starter
code input starter
code input starter
instead of
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
*********************
**********************
***********************
************************
*************************
**************************
***************************
****************************
*****************************
******************************
*******************************
********************************
*********************************
**********************************
***********************************
************************************
*************************************
**************************************
***************************************
****************************************
*****************************************
******************************************
*******************************************
********************************************
*********************************************
**********************************************
***********************************************
************************************************
*************************************************
**************************************************
***************************************************
****************************************************
*****************************************************
******************************************************
*******************************************************
********************************************************
*********************************************************
**********************************************************
***********************************************************
************************************************************
*************************************************************
**************************************************************
***************************************************************
****************************************************************
*****************************************************************
******************************************************************
*******************************************************************
********************************************************************
*********************************************************************
**********************************************************************
***********************************************************************
************************************************************************
*************************************************************************
**************************************************************************
***************************************************************************
****************************************************************************
*****************************************************************************
******************************************************************************
*******************************************************************************
********************************************************************************
*********************************************************************************
**********************************************************************************
***********************************************************************************
************************************************************************************
*************************************************************************************
**************************************************************************************
***************************************************************************************
****************************************************************************************
*****************************************************************************************
******************************************************************************************
*******************************************************************************************
********************************************************************************************
*********************************************************************************************
**********************************************************************************************
***********************************************************************************************
************************************************************************************************
*************************************************************************************************
**************************************************************************************************
***************************************************************************************************
Wed Jul 27 06:29:17 2016 hidefromkgb
read n;read c;while((n--));do if [ $n -le 3 ]; then l+=$c;echo $l; else echo "c = $c, l = '$l'"; fi; done
113 symbols bash failed test 4 Wrong answer
n = 98, c = *, l = ''
n = 97, c = *, l = ''
n = 96, c = *, l = ''
n = 95, c = *, l = ''
n = 94, c = *, l = ''
n = 93, c = *, l = ''
n = 92, c = *, l = ''
n = 91, c = *, l = ''
n = 90, c = *, l = ''
n = 89, c = *, l = ''
n = 88, c = *, l = ''
n = 87, c = *, l = ''
n = 86, c = *, l = ''
n = 85, c = *, l = ''
n = 84, c = *, l = ''
n = 83, c = *, l = ''
n = 82, c = *, l = ''
n = 81, c = *, l = ''
n = 80, c = *, l = ''
n = 79, c = *, l = ''
n = 78, c = *, l = ''
n = 77, c = *, l = ''
n = 76, c = *, l = ''
n = 75, c = *, l = ''
n = 74, c = *, l = ''
n = 73, c = *, l = ''
n = 72, c = *, l = ''
n = 71, c = *, l = ''
n = 70, c = *, l = ''
n = 69, c = *, l = ''
n = 68, c = *, l = ''
n = 67, c = *, l = ''
n = 66, c = *, l = ''
n = 65, c = *, l = ''
n = 64, c = *, l = ''
n = 63, c = *, l = ''
n = 62, c = *, l = ''
n = 61, c = *, l = ''
n = 60, c = *, l = ''
n = 59, c = *, l = ''
n = 58, c = *, l = ''
n = 57, c = *, l = ''
n = 56, c = *, l = ''
n = 55, c = *, l = ''
n = 54, c = *, l = ''
n = 53, c = *, l = ''
n = 52, c = *, l = ''
n = 51, c = *, l = ''
n = 50, c = *, l = ''
n = 49, c = *, l = ''
n = 48, c = *, l = ''
n = 47, c = *, l = ''
n = 46, c = *, l = ''
n = 45, c = *, l = ''
n = 44, c = *, l = ''
n = 43, c = *, l = ''
n = 42, c = *, l = ''
n = 41, c = *, l = ''
n = 40, c = *, l = ''
n = 39, c = *, l = ''
n = 38, c = *, l = ''
n = 37, c = *, l = ''
n = 36, c = *, l = ''
n = 35, c = *, l = ''
n = 34, c = *, l = ''
n = 33, c = *, l = ''
n = 32, c = *, l = ''
n = 31, c = *, l = ''
n = 30, c = *, l = ''
n = 29, c = *, l = ''
n = 28, c = *, l = ''
n = 27, c = *, l = ''
n = 26, c = *, l = ''
n = 25, c = *, l = ''
n = 24, c = *, l = ''
n = 23, c = *, l = ''
n = 22, c = *, l = ''
n = 21, c = *, l = ''
n = 20, c = *, l = ''
n = 19, c = *, l = ''
n = 18, c = *, l = ''
n = 17, c = *, l = ''
n = 16, c = *, l = ''
n = 15, c = *, l = ''
n = 14, c = *, l = ''
n = 13, c = *, l = ''
n = 12, c = *, l = ''
n = 11, c = *, l = ''
n = 10, c = *, l = ''
n = 9, c = *, l = ''
n = 8, c = *, l = ''
n = 7, c = *, l = ''
n = 6, c = *, l = ''
n = 5, c = *, l = ''
n = 4, c = *, l = ''
code input starter
code input starter
code input starter
code input starter
instead of
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
*********************
**********************
***********************
************************
*************************
**************************
***************************
****************************
*****************************
******************************
*******************************
********************************
*********************************
**********************************
***********************************
************************************
*************************************
**************************************
***************************************
****************************************
*****************************************
******************************************
*******************************************
********************************************
*********************************************
**********************************************
***********************************************
************************************************
*************************************************
**************************************************
***************************************************
****************************************************
*****************************************************
******************************************************
*******************************************************
********************************************************
*********************************************************
**********************************************************
***********************************************************
************************************************************
*************************************************************
**************************************************************
***************************************************************
****************************************************************
*****************************************************************
******************************************************************
*******************************************************************
********************************************************************
*********************************************************************
**********************************************************************
***********************************************************************
************************************************************************
*************************************************************************
**************************************************************************
***************************************************************************
****************************************************************************
*****************************************************************************
******************************************************************************
*******************************************************************************
********************************************************************************
*********************************************************************************
**********************************************************************************
***********************************************************************************
************************************************************************************
*************************************************************************************
**************************************************************************************
***************************************************************************************
****************************************************************************************
*****************************************************************************************
******************************************************************************************
*******************************************************************************************
********************************************************************************************
*********************************************************************************************
**********************************************************************************************
***********************************************************************************************
************************************************************************************************
*************************************************************************************************
**************************************************************************************************
***************************************************************************************************
Wed Jul 27 06:30:17 2016 hidefromkgb
read n;read c;while((n--));do if [ $n -le 3 ]; then l+=$c;echo $l; else echo "n = $n, c = $c, l = '$l'"; fi; done
116 symbols bash failed test 4 Wrong answer
n = 98, c = *, l = ''
n = 97, c = *, l = ''
n = 96, c = *, l = ''
n = 95, c = *, l = ''
n = 94, c = *, l = ''
n = 93, c = *, l = ''
n = 92, c = *, l = ''
n = 91, c = *, l = ''
n = 90, c = *, l = ''
n = 89, c = *, l = ''
n = 88, c = *, l = ''
n = 87, c = *, l = ''
n = 86, c = *, l = ''
n = 85, c = *, l = ''
n = 84, c = *, l = ''
n = 83, c = *, l = ''
n = 82, c = *, l = ''
n = 81, c = *, l = ''
n = 80, c = *, l = ''
n = 79, c = *, l = ''
n = 78, c = *, l = ''
n = 77, c = *, l = ''
n = 76, c = *, l = ''
n = 75, c = *, l = ''
n = 74, c = *, l = ''
n = 73, c = *, l = ''
n = 72, c = *, l = ''
n = 71, c = *, l = ''
n = 70, c = *, l = ''
n = 69, c = *, l = ''
n = 68, c = *, l = ''
n = 67, c = *, l = ''
n = 66, c = *, l = ''
n = 65, c = *, l = ''
n = 64, c = *, l = ''
n = 63, c = *, l = ''
n = 62, c = *, l = ''
n = 61, c = *, l = ''
n = 60, c = *, l = ''
n = 59, c = *, l = ''
n = 58, c = *, l = ''
n = 57, c = *, l = ''
n = 56, c = *, l = ''
n = 55, c = *, l = ''
n = 54, c = *, l = ''
n = 53, c = *, l = ''
n = 52, c = *, l = ''
n = 51, c = *, l = ''
n = 50, c = *, l = ''
n = 49, c = *, l = ''
n = 48, c = *, l = ''
n = 47, c = *, l = ''
n = 46, c = *, l = ''
n = 45, c = *, l = ''
n = 44, c = *, l = ''
n = 43, c = *, l = ''
n = 42, c = *, l = ''
n = 41, c = *, l = ''
n = 40, c = *, l = ''
n = 39, c = *, l = ''
n = 38, c = *, l = ''
n = 37, c = *, l = ''
n = 36, c = *, l = ''
n = 35, c = *, l = ''
n = 34, c = *, l = ''
n = 33, c = *, l = ''
n = 32, c = *, l = ''
n = 31, c = *, l = ''
n = 30, c = *, l = ''
n = 29, c = *, l = ''
n = 28, c = *, l = ''
n = 27, c = *, l = ''
n = 26, c = *, l = ''
n = 25, c = *, l = ''
n = 24, c = *, l = ''
n = 23, c = *, l = ''
n = 22, c = *, l = ''
n = 21, c = *, l = ''
n = 20, c = *, l = ''
n = 19, c = *, l = ''
n = 18, c = *, l = ''
n = 17, c = *, l = ''
n = 16, c = *, l = ''
n = 15, c = *, l = ''
n = 14, c = *, l = ''
n = 13, c = *, l = ''
n = 12, c = *, l = ''
n = 11, c = *, l = ''
n = 10, c = *, l = ''
n = 9, c = *, l = ''
n = 8, c = *, l = ''
n = 7, c = *, l = ''
n = 6, c = *, l = ''
n = 5, c = *, l = ''
n = 4, c = *, l = ''
code input starter
code input starter
code input starter
code input starter
instead of
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
*********************
**********************
***********************
************************
*************************
**************************
***************************
****************************
*****************************
******************************
*******************************
********************************
*********************************
**********************************
***********************************
************************************
*************************************
**************************************
***************************************
****************************************
*****************************************
******************************************
*******************************************
********************************************
*********************************************
**********************************************
***********************************************
************************************************
*************************************************
**************************************************
***************************************************
****************************************************
*****************************************************
******************************************************
*******************************************************
********************************************************
*********************************************************
**********************************************************
***********************************************************
************************************************************
*************************************************************
**************************************************************
***************************************************************
****************************************************************
*****************************************************************
******************************************************************
*******************************************************************
********************************************************************
*********************************************************************
**********************************************************************
***********************************************************************
************************************************************************
*************************************************************************
**************************************************************************
***************************************************************************
****************************************************************************
*****************************************************************************
******************************************************************************
*******************************************************************************
********************************************************************************
*********************************************************************************
**********************************************************************************
***********************************************************************************
************************************************************************************
*************************************************************************************
**************************************************************************************
***************************************************************************************
****************************************************************************************
*****************************************************************************************
******************************************************************************************
*******************************************************************************************
********************************************************************************************
*********************************************************************************************
**********************************************************************************************
***********************************************************************************************
************************************************************************************************
*************************************************************************************************
**************************************************************************************************
***************************************************************************************************
Wed Jul 27 06:31:32 2016 hidefromkgb
l=;read n;read c;while((n--));do if [ $n -le 3 ]; then l+=$c;echo $l; else echo "n = $n, c = $c, l = '$l'"; fi; done

View all solutions