Retired

Illuminati Initiation (retired)

Description:

The illuminati is a secret society that operates in the dark. Most of their staff are old dinosaures, this is where you come in! You are the new initiate that has just been recuited by The illuminati.

Looking for new ways to expand they're presence secretly, they put you in charge of inserting their "secret" symbol into multimedia.

What you have to do is no mere easy task.

Create a function that will draw a triangle.

Task

  • the function takes in a integer that will define the height of the triangle's output.

  • That return the triangle as a string.

  • The triangle has to be constituted of small o.

  • If the passed paramater is not a positive integer, return a string "illuminati is fake".

  • The returned string must contain spaces " " in hollow around the o except for the base.

  • Each line must contain a new line \n except for the base. (so that anyone else trying to you use it can't trace it back to the secret society)

    TriangleGen(3) will return a string containing the following:

   o  
  ooo 
 ooooo
Puzzles

Similar Kata:

Stats:

CreatedMay 31, 2016
Warriors Trained199
Total Skips0
Total Code Submissions133
Total Times Completed15
JavaScript Completions15
Total Stars3
% of votes with a positive feedback rating10% of 5
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes1
Total "Not Satisfied" Votes4
Total Rank Assessments5
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Sohail05 Avatar
Ad