Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
cccc
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#include <iostream> #include <string> using namespace std; int main() { string str; cin >> str; for(int i = 0 ; i < str.length(); i++){ if(str[i] == 'Z') str[i] = 'A'; else if(str[i] == 'z') str[i] ='a'; else if(str[i] == 'Я') str[i] ='A'; else if(str[i] == 'я') str[i] ='a'; else str[i]++; } for(int i=0; i<str.length(); i++) { str[i]+=i%4; if(str[i]>'z') str[i]='a'+str[i]-'z'; } for(int i=0; i<str.length(); i++) { str[i]=(str[i]-'a')*2+'a'; if(str[i]>'z') str[i]='a'+str[i]-'z'; } cout << str; }
g++
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
edit mode
|
history
|
discussion