Sunteți pe pagina 1din 3

V6

#include <iostream>
#include<cstring>
using namespace std;

int main()
{ int i;
char s[256];
cin.get(s,256);
for(i=1;i<strlen(s);i++)
if(s[i]!=' '&& s[i-1]==' ')
s[i]-=32;
s[0]-=32;
cout << s;
return 0;
}
V7

#include <iostream>
#include<cstring>
using namespace std;

int main()
{
int i;
char s[256];
cin.get(s,256);
i=strlen(s)-1;
while(strchr("aeiou ",s[i]))
i--;
cout << s[i];
return 0;
}
V21

#include <iostream>
#include<cstring>
using namespace std;

int main()
{
int i;
char s[256];
cin.get(s,256);
for(i=0; i<strlen(s)-1; i++)
if(s[i]==s[i+1]&&s[i]!='*')
cout<<s[i]<<s[i+1]<<endl;

return 0;
}
V24

#include <iostream>
#include<cstring>
using namespace std;

int main()
{
int i,j;
char s[100],t[100];
cin>>s>>t;
i=strlen(s)-1;
j=strlen(t)-1;
while(s[i]==t[j])
i--,j--;
cout<<s+i+1;
return 0;
}
V25

#include <iostream>
#include<cstring>
using namespace std;

int main()
{
int i,ok=0;
char s[100];
cin>>s;
for(i=0; i<strlen(s); i++)
if(s[i]>='0'&&s[i]<='9')
ok=1;
if (ok)
cout<<"Corect";
else
cout<<"Incorect";
return 0;
}
V28

#include <iostream>
#include<cstring>
using namespace std;

int main()
{
int i,j;
char s[20],voc[]="aeiou",t[20];
cin>>s;
for(i=0; i<5; i++)
if(strchr(s,voc[i]))
{
strcpy(t,s);
for(j=0;j<strlen(t);j++)
if(t[j]==voc[i])
strcpy(t+j,t+j+1);
cout<<t<<endl;
}
return 0;
}