Please help~ i stuck in this question so long time... This assignment is need to hand up due tomorrow >.<''' . Once again i confuse about array. Please correct me and show me some tips ya. Any of ur attention will be 'God Bless You'.
Here is my coding>>>
#include<stdio.h>
void main()
{
char str[51];
char letter[27]={'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'};
int count, i;
printf("Enter sentence or phrase>>>");
fgets(str, 51, stdin);
for(count=0;str[count]!='\0';count++)
{
for(i=0; letter[i]; i++)
if(letter[i]==str[count])
letter[i]++;
}