Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int i = 0;
- string s = Console.ReadLine();
- string s1 = "";
- string s2 = "";
- while (i != s.Length)
- {
- if (i != 2 && i != 3 && i != 4)
- s1 += s[i];
- i++;
- if (i == 3 || i == 4)
- s2 += s[i];
- if (i == 5)
- break;
- }
- Console.WriteLine("Prvi broj je: {0} ,a drugi je {1}", s1, s2);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement