Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main (){
- char string [30], temp [30];
- int first, last, e;
- printf("Enter a string: n");
- scanf("%s", &str);
- for (first=0; str[first]!='