Advertisement
suthagar23

sumi que 1

Aug 28th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. int limit,value,min;
  2. printf("enter the limit : ");
  3. scanf("%d", &limit);
  4. count = 0;
  5.  
  6. #Limit should greater than 0
  7. while(count<=limit) {
  8. printf("Enter interger : ");
  9. scanf("%d", &value);
  10. if(count==0){
  11. min = value;
  12. }
  13. if(value < min){
  14. min = value;
  15. }
  16. count++;
  17. }
  18.  
  19. printf("Smallest : %d", min);
  20.  
  21. ################################################
  22.  
  23. int count=0;
  24. while ( count<=3) {
  25. int accountno, preCreditLimit;
  26. decimal balance;
  27. printf("Account No : ")
  28. scanf("%d",&accountno);
  29. printf("Pre credit limit: ")
  30. scanf("%d",&preCreditLimit);
  31. printf("Balance : ")
  32. scanf("%d",&balance);
  33. if(preCreditLimit/2 > balance){
  34. print("Exceeded : %d", accountno);
  35. }
  36. count++
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement