title: ASCII Art (Numerical) Output C++
body: <p>I'm currently working on my program. The program takes interger input from the user and then my program will print the ASCII art of the input.</p>
  
  <p><strong>example:</strong></p>
  
  <p><code>Input : 123
   Output :  #  ### ### 
             #    #   # 
             #  ###  ## 
             #  #     # 
             #  ### ###</code></p>
  
  <p>The Question is how to print the number next to each other? My program converted it but the Output goes like this <br><a href="https://i.stack.imgur.com/ICWzn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ICWzn.png" alt="OutputBroken"></a></p>
  
  <p>Instead of: <code>#  ### ### 
             #    #   # 
             #  ###  ## 
             #  #     # 
             #  ### ###</code></p>
  
  <p><strong>Here's my code :</strong><br></p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main(){
  int angka,dpn,blk,tng;
  string abel,ateng,adep;
  
  cout&lt;&lt;"Masukkan Angka : ";
  cin&gt;&gt;angka;
  
  blk = angka % 10;
  tng = angka / 10 % 10;
  dpn = angka / 100;
  
  switch(blk){
      case 0 : abel = "### \n# # \n# # \n# # \n### "; break;
      case 1 : abel = "# \n# \n# \n# \n# "; break;
      case 2 : abel = "### \n  # \n###  \n#   \n### "; break;
      case 3 : abel = "### \n  # \n ## \n  # \n### "; break;
      case 4 : abel = "# # \n# # \n### \n  # \n  # "; break;
      case 5 : abel = "### \n#   \n### \n  # \n### "; break;
      case 6 : abel = "### \n#   \n### \n# # \n### "; break;
      case 7 : abel = "### \n  # \n  # \n  # \n  # "; break;
      case 8 : abel = "### \n# # \n### \n# # \n### "; break;
      case 9 : abel = "### \n# # \n### \n  # \n### "; break;
  
  }
  switch(tng){
      case 1 : ateng = "# \n# \n# \n# \n# "; break;
      case 2 : ateng = "### \n  # \n###  \n#   \n### "; break;
      case 3 : ateng = "### \n  # \n ## \n  # \n### "; break;
      case 4 : ateng = "# # \n# # \n### \n  # \n  # "; break;
      case 5 : ateng = "### \n#   \n### \n  # \n### "; break;
      case 6 : ateng = "### \n#   \n### \n# # \n### "; break;
      case 7 : ateng = "### \n  # \n  # \n  # \n  # "; break;
      case 8 : ateng = "### \n# # \n### \n# # \n### "; break;
      case 9 : ateng = "### \n# # \n### \n  # \n### "; break;
  
  }
  
  switch(dpn){
      case 1 : adep = "# \n# \n# \n# \n# \n"; break;
      case 2 : adep = "### \n  # \n###  \n#   \n### "; break;
      case 3 : adep = "### \n  # \n ## \n  # \n### "; break;
      case 4 : adep = "# # \n# # \n### \n  # \n  # "; break;
      case 5 : adep = "### \n#   \n### \n  # \n### "; break;
      case 6 : adep = "### \n#   \n### \n# # \n### "; break;
      case 7 : adep = "### \n  # \n  # \n  # \n  # "; break;
      case 8 : adep = "### \n# # \n### \n# # \n### "; break;
      case 9 : adep = "### \n# # \n### \n  # \n### "; break;
  
  }
  
  
  //cout&lt;&lt;dpn&lt;&lt;endl&lt;&lt;blk&lt;&lt;endl&lt;&lt;tng; /*DebugNumber*/
  
  cout&lt;&lt;adep&lt;&lt;ateng&lt;&lt;abel;
  return 0;
  }
  </code></pre>