text: #include<stdio.h>
  #include<conio.h>
  void main()
  {
      char text[30];
      int i = 2, a = 0;
      clrscr();
  
      printf("\n\nEnter Text : ");
      gets(text);
      if(text[0] == '/')
      {
          if(text[1] == '/') {
              printf("\nIt is a Comment.");
          } 
          else if(text[1] == '*') 
          {
              for(i = 2; i <= 30; i++)
              {
                  if(text[i] == '*' && text[i + 1] == '/')
                  {
                      printf("\nIt is a Comment.");
                      a = 1;
                      break;
                  }
                  else {
                      continue;
                  }
              }
              if(a == 0)
              {
                  printf("\nIt is Not a Comment.");
              }
              else
              {
                  printf("\nIt is Not a Comment.");
              }
          }
      }
      else
      {
          printf("\nIt is Not a Comment.");
      }
      getch();
  }