Advertisement
cd62131

PEACH to peach

Mar 3rd, 2014
796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <ctype.h>
  3. #include <string.h>
  4. int main(void) {
  5.   char str[] = "PEACH";
  6.   int i;
  7.   for (i = 0; i < strlen(str); i++)
  8.     str[i] = tolower(str[i]);
  9.   printf("str = %s\n", str);
  10.   return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement