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.  
  9.  
  10. //Chuyen ky tu thanh chu in Hoa
  11. for (int i = 0; s[i] != '\0'; i++)
  12. {
  13. if (s[i] != ' ' && (s[i] >= 97 && s[i] <= 122))
  14. s[i] = s[i] - 32;
  15. }
  16. printf("%s", s);
  17. return 0;
  18.  
  19. }
Success #stdin #stdout #stderr 0s 5280KB
stdin
Standard input is empty
stdout
CAO DANG THAI NGUYEN
stderr
sh: 1: cls: not found