using System.Collections.Generic;
private string listphone;
public string Listphone {
set {listphone = value; }
get { return listphone; }
return (rom * 100000 + ram * 150000 );
public static void Main()
Console.WriteLine("How Many Store? \n");
int store =Convert.ToInt32(Console.ReadLine()) ;
List<Smartphone> listPhone = new List<Smartphone>();
List<Smartphone> listData = new List<Smartphone>();
for(int a =0; a < store; a++)
Console.WriteLine("What is store Name?");
string nama2 = Console.ReadLine();
Smartphone phone = new Smartphone();
Console.WriteLine("How Many Smartphone? \n");
int smart1 =Convert.ToInt32(Console.ReadLine()) ;
for(int b =0; b < smart1; b++)
Console.WriteLine("Smartphone Name?");
string nama1 = Console.ReadLine();
Console.WriteLine("Smartphone Rom?");
int rom1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Smartphone Ram?");
int ram1 = Convert.ToInt32(Console.ReadLine());
Smartphone ipon = new Smartphone();
foreach(Smartphone item in listPhone){
Console.WriteLine("This is List Stock From " + item.Name );
foreach(Smartphone item in listData){
Console.WriteLine("The Price of Smartphone " + item.Name + " with ROM " + item.Rom + "GB and RAM " + item.Ram + "GB is Rp " + item.getPrice());