fork download
  1. #include<stdio.h>
  2. void main()
  3. {
  4. char a[5][5];
  5. int i,j;
  6. printf("enter the words:");
  7. scanf("%s",&a);
  8. for(i=0;i<5;i++)
  9. {
  10. for(j=0;j<5;j++)
  11. {
  12. if(a[i][j]==a[j][i])
  13. b=1;
  14. else
  15. b=0;
  16. }
  17. }
  18. if(b=1)
  19. printf("\nacoustic");
  20. else if(b=0)
  21. printf("\nnot acroustics");
  22. }
Success #stdin #stdout 0.02s 2236KB
stdin
ROTAS
OPERA
TENET
AREPO
SATOR
stdout
Standard output is empty