Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, September 3, 2019

Codecademy If...Else... Statements 3/7


// Sample Solution
using System;

namespace IfElseStatement
{
  class Program
  {
    static void Main(string[] args)
    {
      int people = 10;
      string weather = "nice";
if(people <= 10 && weather == "nice"){
        Console.WriteLine("SaladMart");
      } else {
        Console.WriteLine("Soup N Sandwich");
      }
/*people = 12;
      weather = "bad";
      if(people <= 10 && weather == "nice"){
        Console.WriteLine("SaladMart");
      } else {
        Console.WriteLine("Soup N Sandwich");
      }*/
    }
  }
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts