Console.WriteLine("Hello World")
dim amount as integer = 0
Console.Write("input the name for charity " & i + 1)
charity(i).name = console.readline()
name(charity(0).name, charity(1).name, charity(2).name)
Console.Write("input the charty name:")
Console.Write("input your payment amount:")
amount = Console.ReadLine()
charity(0).total += amount / 100
Console.WriteLine(amount / 100 & " to " & charity(0).name)
charity(1).total += amount / 100
Console.WriteLine(amount / 100 & " to " & charity(1).name)
charity(2).total += amount / 100
Console.WriteLine(amount / 100 & " to " & charity(2).name)
Console.WriteLine(charity(0).name & ":" & charity(0).total)
Console.WriteLine(charity(1).name & ":" & charity(1).total)
Console.WriteLine(charity(2).name & ":" & charity(2).total)
Console.WriteLine("total:" & charity(0).total + charity(1).total + charity(2).total)
Console.WriteLine("wrong!! please input 1,2,3 or -1 to end")
Console.WriteLine("1." & a)
Console.WriteLine("2." & b)
Console.WriteLine("3." & c)
public property name as String
public property total as Decimal