All pastes #197040 Raw Edit

VicariousOne

public c v1 · immutable
·published 2006-10-11 01:37 UTC
rendered paste body
#include <stdio.h>#include <ctype.h>main(){  char input[20];  char temp[20];  int i = 0;  int t = 0;  printf("\nPlease enter no more than 20 characters of text:\n");  scanf("%s", input);  //increase i  while(*(input+i))  {    i++;  }  //end increase  i--;  //reverse  while(i >= 0)  {    temp[t] = input[i];    i--;    t++;  }  printf("%s", temp, "\n");  //end reverse  printf("\n");  t=0;  //uppercase  while(*(temp+t))   {    *(temp+t) = toupper(*(temp+t));    t++;  }  printf("%s\n", temp);  //end uppercase}