fork(1) download
  1. #include <stdio.h>
  2.  
  3. char upperCase (char c)
  4. {
  5. if (c >= 'a' && c <= 'z') {
  6. c = c - 'a' + 'A';
  7. }
  8. return c;
  9. }
  10.  
  11. int main (void)
  12. {
  13. char c;
  14. printf("input:");
  15. scanf("%c", &c);
  16. c = upperCase(c);
  17. printf("output:%c", c);
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 1724KB
stdin
Standard input is empty
stdout
input:output: