Question
using visaul studio c programming inside a do while loop ask user to enter two numbers (use a single scanf function). Inside the same loop
using visaul studio c programming inside a do while loop ask user to enter two numbers (use a single scanf function). Inside the same loop ask the user whether they wish to find the min or max of the values entered. If the user enters a 0 call the minFunction; if the user enters a 1 call the maxFunction; otherwise print Not valid input. Pass the two numbers entered as parameters to the functions. Inside minFunction and maxFunction calculate the minimun and the maximum values, respectively, and print. Break the loop when the user enters -999 -999 (values such as -999 are used as a sentinel to terminate a program)
Step 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