fork download
  1. using System;
  2. class Palin{
  3.  
  4. public static void Main(){
  5. int notpal=0;
  6. Console.WriteLine("Enter the Word");
  7. string word=Console.ReadLine();
  8. for(int i=0,j=(word.Length-1);i<((word.Length)/2),j>word.Length/2;i++,j--){
  9. if(word[i]!=word[j])
  10. notpal++;
  11. }
  12. if(notpal)
  13. Console.WriteLine("Palindrome");
  14. else
  15. Console.WriteLine("Not Palindrome");
  16. Console.ReadLine();
  17. }
  18. }
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
pap
compilation info
prog.cs(8,53): error CS1525: Unexpected symbol `,', expecting `)', `;', or `}'
prog.cs(8,73): error CS1525: Unexpected symbol `,', expecting `;' or `}'
prog.cs(8,77): error CS1525: Unexpected symbol `)', expecting `;' or `}'
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty