











Problem 36
Access Denied!
To view this page you have to login first
Login here -
Trivia
Did you know 1 million people use PrepInsta everyday?
To view this page you have to login first
Login here -
Did you know 1 million people use PrepInsta everyday?
// Online C compiler to run C program online
#include
#include
int main() {
char a[100],b[100];
int i,j=0,p,count=0;
scanf(“%s”,a);
int n=strlen(a);
for(i=0;i<n;i++){
p=0;
if(a[i]=='a' || a[i]=='A' ||a[i]=='e' || a[i]=='E' ||a[i]=='i' || a[i]=='I' ||a[i]=='o' || a[i]=='O' ||a[i]=='u' || a[i]=='U' ){
p=1;
}
if(p==0){
b[j]=a[i];
j++;
count++;
}
}
printf("%s",b);
return 0;
}
#include
using namespace std;
int main()
{
int i,j,n;
string s1;
char s[10000];
cin>>s;
for(i=0;s[i]!=’\0′;i++)
{
if (s[i] == ‘a’ || s[i] == ‘A’ || s[i] == ‘e’ || s[i] == ‘E’ || s[i] == ‘i’ || s[i] == ‘I’ || s[i] ==’o’ || s[i]==’O’ || s[i] == ‘u’ || s[i] == ‘U’)
continue;
else
s1=s1+s[i];
}
cout<<s1;
}