CODE:
using System;
using
System.Collections.Generic;
using
System.Text;
namespace
ConsoleApplication4
{
class Program
{
static void Main(string[]
args)
{
string
Ram, Harddisk, Processor, CPU, window;
Console.WriteLine("please enter Ram speed");
Ram = Console.ReadLine();
Console.WriteLine("please enter Hard Disk Memory");
Harddisk = Console.ReadLine();
Console.WriteLine("please enter processor speed");
Processor = Console.ReadLine();
Console.WriteLine("please enter CPU name");
CPU = Console.ReadLine();
Console.WriteLine("please enter window name");
window = Console.ReadLine();
Console.Write("your RAM speed is {0}, your Harddisk memory is {1},
your Processor speed is {2}, your CPU name is {3}, your window is {4}",Ram,Harddisk,Processor,CPU,window);
}
}
}
OUTPUT:
ALGORITHM:
·
Start
·
Initializing:
String RAM, hard disk, Processor, CPU, Window
·
Output:
Please enter your RAM speed
·
Set RAM: Taking
input from the user
·
Output:
Please enter Hard disk memory
·
Set hard disk: Taking input from the user
·
Output:
Please enter your Processor speed
·
Set Processor: Taking input from the user
·
Output: Please enter your CPU name
·
Set CPU: Taking input from the user
·
Output: Please enter your window
·
Set Window: Taking input from the user
·
Output: Result
·
End.
No comments:
Post a Comment