Using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Sinh_Vien
{
struct SinhVien
{
public string _hoTen;
public float _diemToan, _diemVan;
}
class Program
{
static SinhVien s;
static void Nhap()
{
Console.WriteLine("Nhap ho ten sinh vien ");
s._hoTen = Console.ReadLine();
Console.WriteLine("Diem Toan");
s._diemToan = float.Parse(Console.ReadLine());
Console.WriteLine("Diem Van");
s._diemVan = float.Parse(Console.ReadLine());
}
static void xuat()
{
Console.WriteLine("************************\nThong tin sinh vien la:\nHo Ten: " + s._hoTen + "\nDiem Toan: " + s._diemToan.ToString() + "\nDiem Van: " + s._diemVan.ToString());
}
static void Main(string[] args)
{
Nhap();
xuat();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Sinh_Vien
{
struct SinhVien
{
public string _hoTen;
public float _diemToan, _diemVan;
}
class Program
{
static SinhVien s;
static void Nhap()
{
Console.WriteLine("Nhap ho ten sinh vien ");
s._hoTen = Console.ReadLine();
Console.WriteLine("Diem Toan");
s._diemToan = float.Parse(Console.ReadLine());
Console.WriteLine("Diem Van");
s._diemVan = float.Parse(Console.ReadLine());
}
static void xuat()
{
Console.WriteLine("************************\nThong tin sinh vien la:\nHo Ten: " + s._hoTen + "\nDiem Toan: " + s._diemToan.ToString() + "\nDiem Van: " + s._diemVan.ToString());
}
static void Main(string[] args)
{
Nhap();
xuat();
}
}
}
0 comments:
Post a Comment