Advertisement
PawsonCz

Untitled

Jan 17th, 2021
876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. class Student
  2. {
  3.     string name;
  4.     string subject;
  5.     int ocena;
  6.  
  7.  
  8.     public string getName()
  9.     {
  10.         Console.Write("Give my your name,  please\t");
  11.         name = Console.ReadLine();
  12.         return name;
  13.     }
  14.  
  15.     public string getSubject()
  16.     {
  17.         Console.Write("Which subject do you prefer?\t");
  18.         subject = Console.ReadLine();
  19.         return subject;
  20.     }
  21.  
  22.     public string wystawOcene()
  23.     {
  24.         Console.Write("Ocenan z egzaminu:\t");
  25.         ocena = Console.ReadLine();
  26.  
  27.     }
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement