Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C Program to FIND THE EVEN WORDS IN THE STRING
#include conio.h>
#include stdio.h>
void main()
{
char a[50],temp;
int i=0,k=0,l[25],c=0,r=0;
clrscr();
for(i=0;i<25;i++)
l[i]=0;
}
i=0;
printf("ENTER THE STRING: ");
do
a[i++]=getchar();
}while(a[i-1]!='\n');
a[i]='\0';
printf("%s",a);
for(i=0;a[i]!='\0';i++)
if(a[i]==' ' || a[i]=='\n')
temp=a[k];
a[k]=a[i-1];
a[i-1]=temp;
k=i+1;
c++;
else
l[c]++;
for(i=0;l[i]!=0;i++)
if(l[i]%2==0)
r++;
printf("%s\n",a);
printf("THE TOTAL NO OF EVEN WORDS ARE: %d",r);
getch();
OUTPUT :
ENTER THE STRING: KAMLESH D MENGAR
HSELMAK D RAGNEM
THE EVEN WORDS ARE : 1
#queComputers are frequently used in check-writing systems, such as payroll and accounts payable applications. Many stories circulate regarding weekly pay- checks being printed (by
I am an online tutor who can teach computer science and programming language. Is there any requirement for this?
farnahight of celsus
Spider webs have two types of silk, sticky silk and strength silk, spiders do not move on the sticky silken threads only on the strength threads. Assume one type of spider creates
Molecular dynamics for a Lennard-Jones system (in C++) 1. Write a function which reads in the input variables of a molecular dynamics simulation of a Lennard-Jones system. The inpu
Intelligent homes are becoming increasingly popular as the cost/performance ratio of microcontrollers is continuously dropping. These systems incorporate various transducers to de
You are setting up an information system for a DVD Rental Company called Box office. The new system need to hold information about customers and DVDs rentals, payments and fines. C
Define Static Storage Class in C Programming? The Static declarations have distinct and important uses. This allows the local variable to keep its previous value when the block
How virtual functions can be implemented in C++?
C++ improves on many of C's features and provides object-oriented programming capabilities used for software production, quality and reusability. C++ was developed by Bjarne Strons
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd