Guest User

Untitled

a guest
Sep 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a,b;
  5. int smaller = 0;
  6.  
  7. scanf("%d%d",&a,&b);
  8.  
  9. if(a < b){
  10. smaller = a;
  11. }
  12.  
  13. else{
  14. smaller = b;
  15. }
  16. printf("The smaller number is:%d\n",smaller);
  17.  
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment