Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- string input = Console.ReadLine();
- string output = "";
- foreach (char sym in input)
- {
- if (char.IsLower(sym))
- {
- output += char.ToUpper(sym);
- }
- else if (char.IsUpper(sym))
- {
- output += char.ToLower(sym);
- }
- else if (char.IsDigit(sym))
- {
- int number = int.Parse(sym.ToString());
- number *= 2;
- output += number;
- }
- else if (sym =='!'|| sym == '{' || sym == '}' || sym == ')' || sym == '(' || sym == ','||sym == '*' || sym == '@' || sym == '*'|| sym == '"' || sym == '$' || sym == '#' || sym == '%' || sym == '-' || sym == '^')
- {
- output+=".";
- }
- }
- for (int i = output.Length-1;i>=0;i--)// Обръща местата им от АБ в БА
- {
- Console.Write(output[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement