#include "prog4.h" /* NOTE: prog4.h includes /* Function fill2Nums: * Prompts the user to input two numbers (integers). * Retrieves the numbers from the user, putting them in the struct * POINTED TO by the parameter. */ void fill2Nums(TwoNums * theStruct) { int num1; /* Prompt the user for first number... */ printf("\tIn fill2Nums: Please enter a number: "); scanf("%d", &num1); /* Put that number in the struct... */ theStruct->num1 = num1; /* Prompt the user for second number... */ printf("\tIn fill2Nums: Please enter a second number: "); scanf("%d", &theStruct->num2); /* Print num1 and num2. */ printf("\n\tIn fill2Nums: num1 = %d; num2 = %d.\n", theStruct->num1, theStruct->num2); }