Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int n;
- char ch[10];
- int main()
- {
- void update(char[10] ,int);
- do{
- printf("Enter String4-10char: ");
- fflush(stdin);
- scanf("%[^\n]",ch);
- n = strlen(ch);
- }while (n<4||n>10);
- printf("%d",n);
- update(ch,n);
- return 0;
- }
- void update(char x[10] , int y ){
- char d[10];
- int i,c=0;
- printf("stringturntoplusexpected'a' 'e' 'i' 'o' 'u'");
- printf("Output: ");
- for(i=0;i<y;i++){
- if(x[i]=='a'||'e'||'i'||'o'||'u'){
- d[i]= toupper(x[i]);
- printf("%[^\n]",d[i]);
- c++;
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement