1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alexxandr [17]
3 years ago
7

What is wrong with my code?

Computers and Technology
1 answer:
sineoko [7]3 years ago
3 0

Answer:

namespace FavoriteNumber

{

   class Program

   {

       static void Main(string[] args)

       {

           Console.Write("Enter your favorite number!: ");

           string faveNumber = Console.ReadLine();

           int number = Convert.ToInt32(faveNumber);

           Console.Write($"Your favorite number seems to be {number}");

       }

   }

}

Explanation:

You were close. Spot the differences. A statement should end with a semicolon. Console.ReadLine() returns a string. That string is the input of what you want to convert to an int.

And of course you need to match each opening brace { with a closing brace }.

You might be interested in
Ideally an entity identifier is composed of _____ attribute(s).
daser333 [38]
Entity identifier is composed of 4 attributes. It is used to determine the class of one entity. Each entity has its unique attributes. An identifying entity may use the below attributes:
1. date
2. title 
3. the complete address of the entity 
4. name of the performer

8 0
3 years ago
What allows you to navigate up, down, left and right in a spreadsheet?
Triss [41]
The formula bar......................
3 0
3 years ago
Which view is the default for contacts in Outlook 2016?
lara31 [8.8K]

Answer: D:) people

Explanation: I search it up

4 0
3 years ago
Read 2 more answers
If your laptop is not able to connect to your wireless network, which of the following might be a likely cause of the problem?
faltersainse [42]
C. The laptop would be too far away from the source of the signal.
7 0
4 years ago
Read 2 more answers
HURRY PLEASE
Vika [28.1K]

Answer:

import random

Explanation:

Using the random module in python you could generate a random number.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Keyboard shortcut could you use instead of clicking the icon
    11·1 answer
  • Blood alcohol level is the ratio between the alcohol consumed and the blood in the body
    10·1 answer
  • 1. A thesaurus is best used to _____________.
    12·1 answer
  • In the dewey decimal sysytem, the call number 800 notes which section
    10·1 answer
  • It is ok to sell services on Xbox in exchange for real-world money
    10·2 answers
  • Consider the Palindrom class discussed in class. Which of the following is true? It uses one stack and one queue to find out if
    6·1 answer
  • In both direct flooding attacks and _____ the use of spoofed source addresses results in response packets being scattered across
    9·1 answer
  • What are some good apps to download to screenshot your screen?
    7·1 answer
  • Numerous engineering and scientific applications require finding solutions to a set of equations. Ex: 8x + 7y = 38 and 3x - 5y =
    15·1 answer
  • A Software Developer wants to add a new feature to an existing application operating in the Cloud, but only wants to pay for the
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!