Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int limit,value,min;
- printf("enter the limit : ");
- scanf("%d", &limit);
- count = 0;
- #Limit should greater than 0
- while(count<=limit) {
- printf("Enter interger : ");
- scanf("%d", &value);
- if(count==0){
- min = value;
- }
- if(value < min){
- min = value;
- }
- count++;
- }
- printf("Smallest : %d", min);
- ################################################
- int count=0;
- while ( count<=3) {
- int accountno, preCreditLimit;
- decimal balance;
- printf("Account No : ")
- scanf("%d",&accountno);
- printf("Pre credit limit: ")
- scanf("%d",&preCreditLimit);
- printf("Balance : ")
- scanf("%d",&balance);
- if(preCreditLimit/2 > balance){
- print("Exceeded : %d", accountno);
- }
- count++
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement