<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">#include <conio.h><br>
#include <stdio.h></span></div><br><div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">int main ()<br>
{<br></span><div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">char palabra[100];<br>
int m=0,j=0;<br>int a,e,i,o,u;<br>a=0;<br>e=0;<br>i=0;<br>o=0<br>u=0;<br></span></div>

<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES"></span></div><br><span style="font-size: 10pt;" lang="ES">printf ("\n DIGITE UNA PALABRA:");<br>scanf ("%c",&palabra);<br>

<br>int i;      <br>while (palabra[j]!='\0';i++);<br>{<br>switch (palabra[j])<br>{<br></span><span style="font-size: 10pt;" lang="ES">case 'A':</span><br><span style="font-size: 10pt;" lang="ES">case 'a':<br>

a++;<br>m++;<br>break;<br></span><span style="font-size: 10pt;" lang="ES">case 'E':</span><br><span style="font-size: 10pt;" lang="ES">case 'e':<br>
e++;<br>
m++;<br>
break;<br></span><span style="font-size: 10pt;" lang="ES">case 'I':</span><br><span style="font-size: 10pt;" lang="ES">case 'i':<br>
i++;<br>
m++;<br>
break;<br></span><span style="font-size: 10pt;" lang="ES">case 'O':</span><br><span style="font-size: 10pt;" lang="ES">case 'o':<br>
o++;<br>
m++;<br>
break;<br></span><span style="font-size: 10pt;" lang="ES">case 'U':</span><br><span style="font-size: 10pt;" lang="ES">case 'u':<br>
u++;<br>
m++;<br>
break;<br>
</span>default:<br>break;<br><span style="font-size: 10pt;" lang="ES">}<br>j++<br></span></div>
<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">}<br>printf ("\n cantida de vocales: %d cant a: %d </span><span style="font-size: 10pt;" lang="ES">cant e: %d </span><span style="font-size: 10pt;" lang="ES">cant i: %d </span><span style="font-size: 10pt;" lang="ES">cant o: %d </span><span style="font-size: 10pt;" lang="ES">cant u: %d </span><span style="font-size: 10pt;" lang="ES">",m,a,e,i,o,u);<br>

<br></span></div>

<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">getch();<br>
}</span></div><br><br><div class="gmail_quote">El 14 de julio de 2009 17:04, Carlos Wrangller Encarnacion Rodriguez <span dir="ltr"><<a href="mailto:carlos.w04@gmail.com">carlos.w04@gmail.com</a>></span> escribió:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="margin: 0cm 0cm 10pt; line-height: normal;"><b><span style="font-size: 10pt;" lang="ES">Ejecicio</span></b></div>



<div style="margin: 0cm 0cm 10pt; line-height: normal;"><b><span style="font-size: 10pt;" lang="ES">Contar vocales. </span></b></div>

<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">Escribe un programa que cuente el número de ocurrencias de cada vocal (tanto si es mayúscula como </span><span style="font-size: 10pt;" lang="ES">minúscula) en una cadena de caracteres y los muestre por pantalla.</span></div>



<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">Hasta ahora lo unico que se me ah ocurrido es esto y no puedo ni compilarlo ya no se me ocurre mas nada soy nuevo programando.</span></div>



<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES"></span> </div>

<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">#include <conio.h><br>
#include <stdio.h></span></div>
<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">char palabra[100];<br>
int largo,m;</span></div>
<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">int main ()<br>
{<br>printf ("\n DIGITE UNA PALABRA:");<br>scanf ("%c",&palabra);<br>{<br>int i;      <br>while (palabra[i]!='\0';i++);<br>if ((palabra[i]=='a')||(palabra[i]=='e')||(palabra[i]=='i')||(palabra[i]=='o'))||(palabra[i]=='u');<br>


m++;    <br>}</span></div>
<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">printf ("\n cantida de vocales: %d",m); </span></div>

<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES">getch();<br>
}</span></div>
<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES"></span> </div>

<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES"></span> </div>

<div style="margin: 0cm 0cm 10pt; line-height: normal;"><span style="font-size: 10pt;" lang="ES"></span> </div>
<br>_______________________________________________<br>
Lista de correo Cconclase <a href="mailto:Cconclase@listas.conclase.net">Cconclase@listas.conclase.net</a><br>
<a href="http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net" target="_blank">http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net</a><br>
Bajas: <a href="http://listas.conclase.net/index.php?gid=2&mnu=FAQ" target="_blank">http://listas.conclase.net/index.php?gid=2&mnu=FAQ</a><br></blockquote></div><br><br clear="all"><br>-- <br> (\__/) <br>(='.'=)This is Bunny. Copy and paste bunny into your <br>

(")_(")signature to help him gain world domination. <br><br>