ok so here is my code so far:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PracticeReview
{
    class Program
    {
        static void Main(string[] args)
        {
            const double TAX_RATE = 0.0675;
            const int SPEED = 80;
            const char HIGHEST_GRADE = 'A';
            Console.Read();

            TAX_RATE = 0.0675;
            SPEED = 80;
            HIGHEST_GRADE = 'A';
            


        }
    }
}

I dont know how to retrieve the data i put in the memory I get to Console.WriteLine( TAX_RATE , " the tax rate will be" ) ; is that the correct way to retrieve then display the output ?

Thanks again

Recommended Answers

Try this:

Console.WriteLine("The tax rate will be: {0}.", TAX_RATE) ;
Jump to Post

All 2 Replies

Try this:

Console.WriteLine("The tax rate will be: {0}.", TAX_RATE) ;
commented: helped solve a syntax issue +1

Thank you so much!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.