Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. /* this is my code */
  2.  
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7. int number;
  8.  
  9. printf( "Enter a Number: " );
  10. scanf( "%d", &number );
  11. printf( "Your number was %d", &number );
  12. getchar();
  13. return 0;
  14. }
  15.  
  16.  
  17. /* This is the code they wrote copied and pasted -
  18.  
  19. #include <stdio.h>
  20.  
  21. int main()
  22. {
  23. int this_is_a_number;
  24.  
  25. printf( "Please enter a number: " );
  26. scanf( "%d", &this_is_a_number );
  27. printf( "You entered %d", this_is_a_number );
  28. getchar();
  29. return 0;
  30.  
  31.  
  32. }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement