Untitled
unknown
plain_text
a year ago
1.3 kB
13
Indexable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YINON
{
internal class Program
{
static void ex1()
{
string name = Console.ReadLine();
int age = int.Parse(Console.ReadLine());
int grade = int.Parse(Console.ReadLine());
string pro = Console.ReadLine();
Student yinon = new Student(name, age, grade, pro);
Student p2 = new Student("avi", 18, 85, "computer en");
yinon.printer();
p2.printer();
Console.WriteLine(p2.gradecheck());
Console.WriteLine(yinon.procheck());
Console.WriteLine(p2.procheck());
yinon.plandf();
}
static void ex2()
{
int bal = int.Parse(Console.ReadLine());
Bank y1 = new Bank(bal);
Bank y2 = new Bank(5820);
y2.give(1500);
Console.WriteLine(y2.getbal());
y1.take(250);
Console.WriteLine(y2.getbal());
int x = 0;
}
static void Main(string[] args)
{
ex1();
}
}
}
Editor is loading...
Leave a Comment