Question: C Program Could you rewrite the program and tell me where I have gone wrong? DQ-1 Report Error Single File Programming Question Marks : 10

 C Program Could you rewrite the program and tell me where

C Program

Could you rewrite the program and tell me where I have gone wrong?

I have gone wrong? DQ-1 Report Error Single File Programming Question Marks

DQ-1 Report Error Single File Programming Question Marks : 10 Negative Marks : 0 Write a program to accept your name and count the number of vowels in it. Input format The input consists of a string. Output format The output prints the number of vowels in it. Sample testcases Input 1 Output 1 Alice 3 1 V1 You are using GCC 2. #include int main() 4-{ 5 char name[20]; int i=0, count =0; scanf("%[^ name); 8 while(name[i]!= ' '||name[i]!=' ') 9 { 10 if (name[i]=='a'||name[i]=='e'||name[i]=='i'||name[i]=='0'||name[i]=='u'||name[i]=='A' 11 { 12 count++; 13 14 15 16 } 17 printf("%d",i); 18 } i++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!