fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main (void)
  4. {
  5. int num;
  6. char ch;
  7.  
  8. scanf("%d",&num);
  9. scanf(" %c",&ch);
  10.  
  11. printf("num is %d and ASCII of ch= %d\n.",num,ch);
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 5284KB
stdin
12 k
stdout
num is 12 and ASCII of ch= 107
.