fork download
  1. #include <stdio.h>
  2. #include <ctype.h>
  3. int main() {
  4. int i = 0;
  5. char str[] = "foobar";
  6. while(str[i]) {
  7. putchar (toupper(str[i]));
  8. i++;
  9. }
  10. return(0);
  11. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
FOOBAR