Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Occupational Safety and Health Act?

Answered: 1 week ago

Question

Discuss globalization issues for small to medium-sized businesses.

Answered: 1 week ago