+ 28

[ASSIGNMENT] Hollow Diamond

Write a program to take input from user of number of lines in the upper half to print the output in the given example: Example: Input: 5 Output: 1. * 2. * * 3. * * 4. * * 5. * * * * * * * * * If you didn't get the example then you can see my code given in answers section. All languages are welcome.

5th Dec 2017, 3:30 PM
...
43 Answers
+ 30
11th Dec 2017, 7:48 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
5th Dec 2017, 8:09 PM
LukArToDo
LukArToDo - avatar
+ 14
@Insan Really? Set your own try, do not steal others code.Guys, what wrong with you today?😁
8th Dec 2017, 4:21 PM
LukArToDo
LukArToDo - avatar
5th Dec 2017, 4:17 PM
Louis
Louis - avatar
6th Dec 2017, 11:27 AM
Abhishek Tandon
Abhishek Tandon - avatar
+ 13
@MN. Mohamed Rizkhan Set your own try, do not steal others code. Original : https://code.sololearn.com/cpfQaTJZkUSy/?ref=app Your (stolen) code: https://code.sololearn.com/cbmjpCO2PvvR/?ref=app
8th Dec 2017, 11:30 AM
LukArToDo
LukArToDo - avatar
+ 13
@HeisAbdulaziz Hahaha...luckily, there are few of them 😊
8th Dec 2017, 5:01 PM
LukArToDo
LukArToDo - avatar
5th Dec 2017, 8:41 PM
VcC
VcC - avatar
6th Dec 2017, 3:10 AM
#RahulVerma
#RahulVerma - avatar
+ 7
Here is my try Sweet and Simple😁 https://code.sololearn.com/c1w6tgM7sx4X/?ref=app
17th Dec 2017, 6:54 AM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 6
https://code.sololearn.com/cpv67cm3wLTV/?ref=app
5th Dec 2017, 3:33 PM
...
5th Dec 2017, 6:14 PM
abdulazizumarovich
abdulazizumarovich - avatar
+ 6
No laughing 😐 (still a beginner) https://code.sololearn.com/cDGnULuKz16z/?ref=app
10th Dec 2017, 4:12 PM
Hajar Joulal
Hajar Joulal - avatar
7th Dec 2017, 2:16 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 5
Diamond is just a two function: y = |x-N| and 2N-y = |x-N|. So, let's just drawn this functions. :) https://code.sololearn.com/cPyV5NJc7PR7/
7th Dec 2017, 9:18 PM
Alex V. S.
8th Dec 2017, 3:15 AM
Kartik
Kartik - avatar
8th Dec 2017, 7:03 AM
Aayush Bhansali
Aayush Bhansali - avatar
+ 5
8th Dec 2017, 6:33 PM
Вадим Сухотин (Vadim Sukhotin)
Вадим Сухотин (Vadim Sukhotin) - avatar
10th Dec 2017, 2:04 PM
Louis
Louis - avatar
+ 4
fully functional(kinda) and smaller than original(author's version) https://code.sololearn.com/cdMw1mDLq4N5/?ref=app
5th Dec 2017, 6:36 PM
Виктор