#include<stdio.h>
int main(){

 // variables to be used in the equation
 int adults, kids;

 // inputs and stores the variable "adults"
 printf("Prices are:                      \n");
 printf("Children      $3  ages 17 and under\n");
 printf("Adults        $5  ages 18 and over\n");
 printf("Enter the number of adults:\n ");
 scanf("%d", &adults);

 // inputs and stores the variable "kids"
 printf("Enter the number of children: \n");
 scanf("%d", &kids);

 // prints the data after the equation solves the price for adults and children tickets
 printf("\nAmount due is $%d.", (adults * 5) + (kids * 3));

 return 0;
}

//***********************************************************************
//Test Data
//***********************************************************************

//Enter the number of adults: 5
//Enter the number of children: 2

//Amount due is $31.



