Program in C language:
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char c[30];
int i,a=0;
clrscr();
printf("Enter your name\n");
scanf("%s",c);
for(i=0;i<strlen(c);i++);
{
if(c[i]=='a'¦¦c[i]=='e'¦¦c[i]=='i'¦¦c[i]=='o'¦¦c[i]=='u')
{
printf("vowels are=%c\n", c[i]);
a++;
}}
printf("total=%d",a);
getch();
}
In the above program, I'm not to put output. So, check the output, if there is any mistake or doubt in this program. share your comments below.
KEEP SHARE & KEEP SUPPORT
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char c[30];
int i,a=0;
clrscr();
printf("Enter your name\n");
scanf("%s",c);
for(i=0;i<strlen(c);i++);
{
if(c[i]=='a'¦¦c[i]=='e'¦¦c[i]=='i'¦¦c[i]=='o'¦¦c[i]=='u')
{
printf("vowels are=%c\n", c[i]);
a++;
}}
printf("total=%d",a);
getch();
}
In the above program, I'm not to put output. So, check the output, if there is any mistake or doubt in this program. share your comments below.
KEEP SHARE & KEEP SUPPORT
No comments:
Post a Comment