Skip to content

Instantly share code, notes, and snippets.

@you74674
Last active December 13, 2017 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save you74674/fa197afde8d61a067de99ab416b50fc3 to your computer and use it in GitHub Desktop.
Save you74674/fa197afde8d61a067de99ab416b50fc3 to your computer and use it in GitHub Desktop.
#include"___header.h"
#include"___header.h"
#include<stdio.h>
#include<string.h>
void cut(char *p)
{
int len=strlen(p);
if(p[len-1]=='\n')
p[len-1]='\0';
}
int main()
{
for(char s[100]; fgets(s, 100, stdin);)
{
cut(s);
reverse(s);
printf("%s\n", s);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment