Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  rev.c
Language: C/C++
Code:
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>

main() {

char p[10],q[10];
int i;
printf("enter string");
gets(p);


for(i=0;i<10;i++)
     printf("%c",p[i]);
strrev(p);
printf("n");
for(i=0;i<10;i++){
     if(i%2==0)
     printf("%c",tolower(p[i]));
     else
     printf("%c",toupper(p[i]));

}
getch();
}          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
Comments: