|
|
/* Program# 40
date : 25-12-2008
word for vowel
*/
#include <stdio.h>
main(){
char a;
printf("\nEnter a vowel :");
scanf("%c",&a);
if(a=='a')
printf("\namazon\n");
else
if(a=='e')
printf("\nebay\n");
else
if(a=='i')
printf("\nigoogle\n");
else
if(a=='o')
printf("\nopen office\n");
else
if(a=='u')
printf("\nubuntu\n");
else
printf("\n %c not a vowel",a);
}
output: To compile the program, run the gcc command,
$ gcc p40.c
Now the executable file is stored as a.out, to run the program,
$ ./a.out
Enter a vowel :r
r not a vowel
$ ./a.out
Enter a vowel :i
igoogle
$
|