Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char a[100], b[100];
- gets(angel);
- int i;
- for(i = 0; a[i]!='\0'; i++){
- b[i] = a[i];
- }
- b[i] = a[i];
- printf("%s", b);
- return 0;
- }
- /*Reverse*/
- #include<stdio.h>
- int main()
- {
- char str[100];
- gets(str);
- int len = 0, i;
- for(i = 1; str[i]!='\0'; i++){
- len = len + 1;
- }
- for(i = len; i>=0; i--){
- printf("%c", str[i]);
- }
- return 0;
- }
- /* length
- #include<stdio.h>
- int main()
- {
- char str[100], i, j;
- gets(str);
- int len = 0;
- for(i = 0; str[i]!='\0'; i++)
- {
- len = len + 1;
- }
- printf("%d", len);
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement