Professional Documents
Culture Documents
Visual Programming
Lab Journal 1
Exercise 1.1
Create a simple Hello World Program. This program should display “Hello World!” on screen. The
console should also stop on screen after displaying it. Make sure that the screen does not close.
namespace vp_lab_1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadLine();
}
}
}
Exercise 1.2
Take input from user and store in a char variable. Take another input and store in an integer
variable. Make sure to convert the input where necessary.
namespace vp_lab_1
{
class Program
{
static void Main(string[] args)
{
Console.ReadLine();
}
}
}
Exercise 1.3
Take an integer number from user. Print the table of the number entered by user on screen in the
following format.
For example, if input is 2 then.
namespace vp_lab_1
{
class Program
{
static void Main(string[] args)
{
Console.ReadLine();
}
}
}