-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
27 lines (25 loc) · 857 Bytes
/
Program.cs
File metadata and controls
27 lines (25 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
namespace MyApp // Note: actual namespace depends on the project name.
{
internal class Program
{
static void Main(string[] args)
{
// string age = Console.ReadLine();
// Console.WriteLine(age);
// Console.ReadLine();
// int a = 6;
// float b = 87.9F;
// Console.WriteLine(a);
// Console.WriteLine(b);
// Console.WriteLine("Sum od a and b is " + (a + b));
Console.Write("Enter your Name:");
String name=Console.ReadLine();
Console.Write("How many candies do you want:");
String num=Console.ReadLine();
Console.WriteLine("Hey "+name);
Console.Write("Congo you got " +num );
Console.WriteLine(" Candies");
}
}
}