fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char let;
  6. scanf(%c,&let);
  7.  
  8. if(let == 'a'){
  9. printf("a");
  10. }
  11. else if(let != 'a'){
  12. printf("!a");
  13. }
  14.  
  15. return 0;
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:8: error: expected expression before ‘%’ token
  scanf(%c,&let);
        ^
stdout
Standard output is empty