Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8840357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:26:50+00:00 2026-06-14T10:26:50+00:00

I have an array and I need to put the $ sign on the

  • 0

I have an array and I need to put the $ sign on the output when i print the array. I have seen the ValueType but it did not work with me on an array. please help me, what to do?

here is my code

string[,] Pizza = new string[5, 5]
        {
            {"Name of Pizza \t",   "Small",        "Medium",       "Large",        "XLarge"},
            {"Plain \t \t",           "8.80",       "12.80",    "16.80",    "20.80"},
            {"Hawaian \t",         "10.90",      "15.90",       "20.90",        "25.90"},
            {"Beefy \t \t",           "10.90",      "16.90",        "21.90",        "26.90"},
            {"Vegetarian \t",       "10.90",      "14.90",      "19.90",        "24.90"}
        };

        //print the array
        Console.WriteLine("what type of Pizza do you want?");
        for (int i = 0; i < Pizza.GetLength (0); i++)
        {
            Console.WriteLine();
            for (int j = 0; j < Pizza.GetLength (1); j++)
                Console.Write(Pizza[i, j]+'\t');
        }

thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:26:51+00:00Added an answer on June 14, 2026 at 10:26 am

    This should help you

    string[,] Pizza = new string[5, 5]
    {
        {"Name of Pizza \t",   "Small",        "Medium",       "Large",        "XLarge"},
        {"Plain \t \t",           "8.80",       "12.80",    "16.80",    "20.80"},
        {"Hawaian \t",         "10.90",      "15.90",       "20.90",        "25.90"},
        {"Beefy \t \t",           "10.90",      "16.90",        "21.90",        "26.90"},
        {"Vegetarian \t",       "10.90",      "14.90",      "19.90",        "24.90"}
    };
    
    //print the array
    Console.WriteLine("what type of Pizza do you want?");
    for (int i = 0; i < Pizza.GetLength (0); i++)
    {
        Console.WriteLine();
    
        for (int j = 0; j < Pizza.GetLength (1); j++)
    
            if(j > 0 && i > 0){
                Console.Write("$" + Pizza[i, j] + '\t');
            }
            else{
                Console.Write(Pizza[i, j] + '\t');
            }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please could you help me: i have an array sorted by key: $a['a'] =
I have an encrypted, base64 encoded array that I need to put into a
I have a table with some fixed columns id,title,created.., but there I need put
I have this array of time values: [00:04:48.563044, 00:05:29.835918, 00:09:38.622569] But I need to
I'm new to Objetive-C and need some help, I have an Array with 22
I have an array called $type which I need to put into an SQL
I have a char buf[3]; array where I need to put: buf[0] = ch
I have been given an array in the following format and need to put
I have an array of n elements, I need to put all 2- combination
I have an array which i need to sort its elements by occurrence then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.