Diziler-Girilen Kelimeyi Tersten Yazdıran Program

0
1.330 views
#include<stdio.h>
#include<conio.h>

/*Girilen Kelimeyi Ters Yazdıran Program DİZİLER*/
main()
{
  char s[20];
  int k=0;
  printf("Kelime Girin: ");
  scanf("%s",&s);
  while(s[k]!='\0')
  k++;

  while(k>=0)	
  {
    printf("%c",s[k]);
    k--;
  }

    getch();
}