View Code of Problem 52

#include <stdio.h>
#include <math.h>
#include <string.h>
void p(char *s){
	int i;
	char *a;
	if(*(s+1)!='\0'){
		a=s;
		s++;
		p(s);
	}
    	printf("%c",*a);
	
    
	
	
  
}
int main(){
  int i,j=0,f=0,a,min=0,max=0,q[10][10],temp,sum=0;
  char s[80];
   gets(s);
   a= strlen(s);
   
   for(i=a-1;i>=0;i--){
      printf("%c",s[i]);
   }
  return 0;
 }
	

Double click to view unformatted code.


Back to problem 52