Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.88 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. system(cls);
  4. int main()
  5. {
  6.   //variables are being declared
  7.   char mtrvehicle_type;
  8.   int clm_type;
  9.   int policy_num;
  10.   int unltd_clms;
  11.   float excess;
  12.   float payable;
  13.   float clm_amt;
  14.   int count=0;
  15.   int claimnum=1001 ;
  16.  
  17.  while (count<=50)
  18.  {
  19.  
  20.   printf("Please enter your claim type \n");
  21.   //claim type is being accepted from the user
  22.   scanf("%d",&clm_type);
  23.  
  24.   printf("Enter your policy number \n");
  25.   //policy number is being accepted from the user
  26.   scanf("%d",&policy_num);
  27.   printf("please enter your claim amount \n");
  28.   //claim amount is being accepted from the user
  29.   scanf("%f",&clm_amt);
  30.  
  31.   claimnum=claimnum +1;
  32.   printf("claimnum:\n", claimnum);
  33.  
  34.   printf("Please enter your motor vehicle type \n");
  35.   //motor vehicle type is being accepted from the user'
  36.   scanf("%s", mtrvehicle_type);
  37.   count++;
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement