Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <ctype.h>
- #define NMAX 20
- using namespace std;
- char s[NMAX];
- int main() {
- gets(s);
- int n = strlen(s);
- for (int i = 0; i < n; i++) {
- if (islower(s[i])) {
- strcpy(s + i, s + i + 1);
- i--;
- n--;
- }
- }
- if (!n) {
- strcpy(s, "CUVANT VID!");
- }
- puts(s);
- return 0;
- }
Add Comment
Please, Sign In to add comment