fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i;
  6. printf("Please input a integer like i=2");
  7. scanf("i=%d",&i);
  8. printf("Hello world\n i=%d",i);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5288KB
stdin
i=5
stdout
Please input a integer like i=2Hello world
 i=5