#include
#include
#include
void main()
{
int n,a=0,e=0,i=0,o=0,u=0;
char s[30];
char *p;
clrscr();
p=s;
printf("Enter a Word:");
gets(s);
while(*p!='\0')
{
if((*p=='A')(*p=='a'))
a++;
if((*p=='E')(*p=='e'))
e++;
if((*p=='I')(*p=='i'))
i++;
if((*p=='O')(*p=='o'))
o++;
if((*p=='U')(*p=='u'))
u++;
p++;
}
printf("\n\nA's Occurence in the Sentence=%d",a);
printf("\n\nE's Occurence in the Sentence=%d",e);
printf("\n\nI's Occurence in the Sentence=%d",i);
printf("\n\nO's Occurence in the Sentence=%d",o);
printf("\n\nU's Occurence in the Sentence=%d",u);
getch();
}
Output:
Enter a Word:Vowel Letters Are A,E,I,O,U
A's Occurence in the Sentence=2
E's Occurence in the Sentence=5
I's Occurence in the Sentence=1
O's Occurence in the Sentence=2
U's Occurence in the Sentence=1
program to extract a given word from a file
Not possible.
Level sensors are designed to detect the level of substances that flow. The idea behind a water level sensor is that it can detect the level of water in any given scenario.
write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)
$234
It is your face
program to extract a given word from a file
in C: strstr, declared in string.h
The question is impossible to answer. You cannot determine an algorithm from a given program if the program is not actually given in the question. Please place the program in the discussion section.
It is possible in Star Trek, impossible in real life.
Due to weight given to that decision was incorrect
file is a set of data and program that has been given a name
A Program
It is a number expressing the likelihood of the occurrence of a given event, especially a fraction expressing how many times the event will happen in a given number of tests or experiments.
Great Society was the name given to the legislative program of Lyndon B Johnson
Generic: It can be described as the vague idea how it has be done , but not the exact specification Specific: Pinpoint description how it is being done. Everything is given a accurately with what has been given.
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html