SHOW:
|
|
- or go back to the newest paste.
| 1 | using System; | |
| 2 | using System.Collections.Generic; | |
| 3 | using System.Linq; | |
| 4 | using System.Text; | |
| 5 | using System.Threading.Tasks; | |
| 6 | ||
| 7 | namespace Podgotovka_za_ispit | |
| 8 | {
| |
| 9 | class Program | |
| 10 | {
| |
| 11 | static void Main(string[] args) | |
| 12 | {
| |
| 13 | /*За всеки студент да се въведе следната информация: факултетен номер (знаков | |
| 14 | низ до 10 знака), име (знаков низ до 40 знака съдържащ трите имена на студента | |
| 15 | разделени с точно един интервал), оценка от изпита (цяло число), име на изпитващ | |
| 16 | преподавател (знаков низ до 40 знака съдържащ трите имена на преподавателя | |
| 17 | разделени с точно един интервал).*/ | |
| 18 | //Result holds the data for the test endresult, note that its scale is up to | |
| 19 | //6 and the lowest point of rate would be 2. | |
| 20 | - | int Result = int.Parse(Console.ReadLine()); |
| 20 | + | // int Result = int.Parse(Console.ReadLine()); |
| 21 | - | int Students = 40; |
| 21 | + | //int Students = 40; |
| 22 | - | for (int i = 0; i < Students; i++) |
| 22 | + | /*for (int i = 0; i < Students; i++) |
| 23 | {
| |
| 24 | //Number and FNumber are responsible for Unique random facultet number of each student. | |
| 25 | Random Number = new Random(); | |
| 26 | int FNumber = Number.Next(305980000, 805960000); | |
| 27 | int[] ArrayFNumbers = new int[40]; | |
| 28 | string NameHolder = Console.ReadLine(); | |
| 29 | int s = NameHolder.Length; | |
| 30 | - | Console.WriteLine(ArrayFNumbers[i]); |
| 30 | + | char StrName; |
| 31 | StrName = NameHolder[0]; | |
| 32 | - | Console.ReadLine(); |
| 32 | + | |
| 33 | ArrayFNumbers[i] = FNumber; | |
| 34 | Console.WriteLine(ArrayFNumbers[i]+NameHolder); | |
| 35 | }*/ | |
| 36 | string Fullname = Console.ReadLine(); | |
| 37 | int Len = Fullname.Length; | |
| 38 | char ch = Fullname[0]; | |
| 39 | if (Fullname != " ") | |
| 40 | {
| |
| 41 | char interval = ' '; | |
| 42 | int test2 = Fullname.LastIndexOf(interval); | |
| 43 | string FirstName = Fullname.Substring(0, test2); | |
| 44 | string Surrname = FirstName.Substring(0,test2); | |
| 45 | string Lastname = Fullname.Substring(test2+1); | |
| 46 | Console.WriteLine("From FirstNameFun:{0}",FirstName);
| |
| 47 | Console.WriteLine("From SurrnameFun:{0}",Surrname);
| |
| 48 | Console.WriteLine("From LastName:{0}",Lastname);
| |
| 49 | Console.ReadLine(); | |
| 50 | } | |
| 51 | } | |
| 52 | } | |
| 53 | } |