So i'm wirghting this program:
It's supposed to:PHP Code:
#include <stdio.h>
#include <iostream>
int main()
{
char A,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
printf ("Introduzca un caracter, por favor.");
scanf("%c", &A);
if (A==b,c,d,f,g,h,j,k,l,m,n,p,q,r,s,t,v,w,x,y,z)
printf("Caracter es una consonante.");
else (A==a,e,i,o,u)
printf ("Caracter es una vocal.");
else (A==%i)
printf ("Caracter es un numero.");
}
1.-Ask you to input a (1) charecter/intager.
2.- Then it should output wether if it's a consonant, vowel or integer.
That's it, but I'm still having loads of trouble with characters, I can I get some orientation? Please.
Bookmarks