fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(){
  5. system("cls");
  6.  
  7. char s[] = "CAO DaNG THAI NGUYEN";
  8. //Chuyen ky tu thanh chu thuong
  9. for (int i = 0; s[i] != '\0'; i++)
  10. {
  11. if (s[i] != ' ' && (s[i] >= 65 && s[i] <= 90))
  12. s[i] = s[i] + 32;
  13. }
  14. printf("%s", s);
  15. return 0;
  16.  
  17. }
Success #stdin #stdout #stderr 0.01s 5280KB
stdin
Standard input is empty
stdout
cao dang thai nguyen
stderr
sh: 1: cls: not found