Guest User

Untitled

a guest
Jul 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. namespace Sifruj
  2. {
  3. class Program
  4. {
  5. public string Sifruj(string text)
  6. {
  7. text = text.ToUpper();
  8. int pom = 0;
  9. for (int i = 0; i < text.Length; i++)
  10. {
  11. pom = 0;
  12.  
  13. pom = 90 - (int)text[i];
  14. Console.WriteLine((char)pom);
  15. }
  16.  
  17.  
  18.  
  19. return text;
  20. }
  21.  
  22.  
  23.  
  24.  
  25.  
  26. static void Main(string[] args)
  27. {
  28. Program neco = new Program();
  29.  
  30. neco.Sifruj("abcd");
  31. }
  32. }
  33. }
Add Comment
Please, Sign In to add comment