All pastes #22285 Raw Edit

Anonymous

public text v1 · immutable
#22285 ·published 2005-09-07 08:18 UTC
rendered paste body
#include <stdio.h>

int main(void)
{
  int c;
  while ((c = getchar()) != EOF)
  {
    if (c > 33 && c < 58)
    {
      c = c + 32;
      printf("The character is %c \n",c);
    }
    else if (c < 90 && c > 65)
    {
      c = c - 32;
      printf("The character is %c \n",c);
    }
    else
    {
      printf(" Incorrect input\n");
    }
  }
  return 0;
}