Header Ads

Header ADS

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#

1 comment:

  1. It looks like you really know what you are talking about when it comes to mesh software. Thanks for the information on this stuff.

    ReplyDelete

Powered by Blogger.