Please support our C advertiser: Programming Forums
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>>>
Here is my coding>>>
c Syntax (Toggle Plain Text)
#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]++; }
Similar Threads
Other Threads in the C Forum
- Program- calculate # of days between two days (C++)
- java program to calculate simple interest (Java)
- Using Loops to calculate totals in C Program (C)
- Can anyone suggest why this program doesn't calculate correctly? (Java)
- Need help with C program (C)
- sentence capitalizer (C++)
Other Threads in the C Forum
- Previous Thread: c Compiler (Not C++)
- Next Thread: binary
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Threaded Mode