Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I want to assign these num variables to user input, and then have it so that the average and product variables take the average and
I want to assign these "num" variables to user input, and then have it so that the "average" and "product" variables take the average and product of whatever the user input is. But I don't know what to assign my num variables to in order to have it set to user input
int main (void) int numl; int num2 int num3; double average; double product; numl num2 num3 average -(numl + num2 + num3) /3.0 product (numl * num2) num3; printf("enter 3 integers: n"); printf ( "nun1-%d ", (scanf("%d", &num!), printf("num2-%d ", (scanf("%d", &num2), printf( "num3-%d ", (scanf("%d", &num3), printf("average-%1f ", average); printf("product-%lf ", product); num1)); num2 )); num3 )); //executable statement (s) return 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started