How to make computer information program in c#

How to make computer information program in c#

Object



Write a program that makes use of Console.ReadLine() and Console.WriteLine() to input the details of system configuration from a user and displays it on console.







Code


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace simple
{
    class Program
    {
        static void Main(string[] args)
        {


            int hard_disk, ram, processor;
            Console.WriteLine("\t\twelcome to the system configration\n\n");
            Console.Write("please insert a hard disk :");
            hard_disk = Convert.ToInt32(Console.ReadLine());
            Console.Write("please insert a ram :");
            ram = Convert.ToInt32(Console.ReadLine());
            Console.Write("plaease insert a processor:");
            processor = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("\t your system configration ");
            Console.Write("hard disk is" + hard_disk);
            Console.WriteLine("");
            Console.Write("ram is:" + ram);
            Console.WriteLine("");
            Console.Write("processor is:" + processor);
            Console.WriteLine("");
         

        }
    }
}


How to make computer information program in c#

Popular posts from this blog

Real marksheet using HTML

Salary Calculate Application in C#