Advertisement
wojiaocbj

Untitled

Mar 4th, 2023
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <math.h>
  5. #include <ctype.h>
  6. #include <time.h>
  7. #pragma warning(disable:4996 6031)
  8. int main(){
  9.     int i, flag = 0;
  10.     char input[128] = { 0 };
  11.     while(fgets(input, 127, stdin)){
  12.         for(i = 0; input[i]; i++){
  13.             if(input[i] == '_'){
  14.                 i++; putchar(toupper(input[i]));
  15.             }
  16.             else{
  17.                 putchar(input[i]);
  18.             }
  19.         }
  20.     }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement