Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- system(cls);
- int main()
- {
- //variables are being declared
- char mtrvehicle_type;
- int clm_type;
- int policy_num;
- int unltd_clms;
- float excess;
- float payable;
- float clm_amt;
- int count=0;
- int claimnum=1001 ;
- while (count<=50)
- {
- printf("Please enter your claim type \n");
- //claim type is being accepted from the user
- scanf("%d",&clm_type);
- printf("Enter your policy number \n");
- //policy number is being accepted from the user
- scanf("%d",&policy_num);
- printf("please enter your claim amount \n");
- //claim amount is being accepted from the user
- scanf("%f",&clm_amt);
- claimnum=claimnum +1;
- printf("claimnum:\n", claimnum);
- printf("Please enter your motor vehicle type \n");
- //motor vehicle type is being accepted from the user'
- scanf("%s", mtrvehicle_type);
- count++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement