This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace salary | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string width = Console.ReadLine(); | |
if(width>20) | |
{ | |
Console.WriteLine("Sorry you can't park in this garage, you truck is too wide :("); | |
} | |
else | |
{ | |
Console.WriteLine("All is ok, you can park safely, and don't forget to turn your engine off :)"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Console.Write("Entrer botre : "); | |
string my_line = Console.ReadLine(); | |
int mon_num = int.Parse(my_line); | |
Console.WriteLine(mon_num * 2); | |
NewerOlder