Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int n;
- cin >> n;
- char c[n];
- for(int i = 0; i < n; i++) {
- cin >> c[i];
- }
- int samoglaski = 0;
- char nova_niza[n];
- int nni = 0;
- for(int i = 0; i < n; i++) {
- if(c[i] == 'A' or c[i] == 'a' or c[i] == 'E' or c[i] == 'e' or c[i] == 'I' or c[i] == 'i' or c[i] == 'O' or c[i] == 'o' or c[i] == 'U' or c[i] == 'u') {
- }
- else {
- nova_niza[nni] = c[i];
- nni++;
- }
- }
- for(int i = 0; i < nni; i++) {
- cout << nova_niza[i];
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment