Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Patara asoebi
#include <iostream> using namespace std; int main() { char str[100]; cout<<"enter a string:"<<endl; cin.get(str ,100); for (int i=0;str[i] != '\0'; i++) { if (islower(str[i])) { str[i]=char(toupper(str[i])); } else { str[i]=char(tolower(str[i])); } } cout<<""<<str<<endl; }
run
|
edit
|
history
|
help
0
matrix calculator
Finding the first digit of a number
Zahra_matrix
collection Hetero
Float
homework
a
on_off
sdfg
template