Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Reverse a String
#include<iostream> #include<string.h> using namespace std; int main() { char input[50]; char temp; int length; cout << "Enter any string" << endl; cin >> input; length=strlen(input); cout<<"The Reversed String is" << endl; for(int i=0, j=length-1; i<length/2; ++i,--j) { temp=input[i]; input[i]=input[j]; input[j]=temp; } cout<<input; }
run
|
edit
|
history
|
help
0
DailyExchRate2
BadCastAllExcept
CutRod(BottomUp)
simple calculator
Set of intervals.
Breakfast Static Function
https://codeforces.com/contest/449/problem/D (INCLuSION EXCLUSION principle)
Triplet sum in array
tAquireSignalProcessor
constexpr expirements