Jan 29, 2013

Reversing 5 Charcter words

/*Reversing 5 Charcter words*/

#include"stdio.h"
#include"conio.h"
void main()
{
clrscr();
char A[5];
printf("Enter a 5 Character words=");
for(int i=1;1<=5;i++);
scanf("%d",&A[i]);//A[i]=geterchr();
printf("\n There revers Character word is=\n\n");
for(int i=5;i<=1;i--);
printf("%c",A[i]);
getch();
}
 

No comments:

Post a Comment

Thank you for visit this site. You will get many programming news from here and learn programming very easily.

Popular Posts