daily pastebin goal
46%
SHARE
TWEET

C_Cipher

mirozspace Mar 24th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class Pr4 {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         String line = scanner.nextLine();
  8.         StringBuilder sb = new StringBuilder();
  9.  
  10.         for (int i = 0; i < line.length(); i++) {
  11.             char symbol = (char) (line.charAt(i) + 3);
  12.             sb.append(symbol);
  13.         }
  14.         System.out.println(sb.toString());
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top