fork download
  1. #include <ctype.h>
  2. #include <stdio.h>
  3.  
  4.  
  5. int main(void) {
  6. const int s = 30;
  7. char p[s];
  8. fgets(p, s, stdin);
  9. int ss = strlen(p);
  10. printf("%d",ss);
  11. int i = 0;
  12. for(i = 0; i < ss; i++)
  13. if(islower(p[i])) p[i] = toupper(p[i]);
  14. printf("%s",p);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5256KB
stdin
RETr fyf gRU ugu iuhjhj HUHIUI iuhuih kjhiuhiuhiHUIHIHInj j
stdout
29RETR FYF GRU UGU IUHJHJ HUHIU