#include int main() { int values[3]; printf("Enter 3 integers: "); for(int i = 0; i < 3; ++i) { scanf("%d", &va

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

#include int main() { int values[3]; printf("Enter 3 integers: "); for(int i = 0; i < 3; ++i) { scanf("%d", &va

Post by answerhappygod »

#include <math.h>
int main() {
int values[3];
printf("Enter 3 integers: ");
for(int i = 0; i < 3; ++i) {
scanf("%d", &values);
}
printf("Output: ");
for(int i = 0; i < 3; ++i) {
printf("%lf\n", sqrt(values));
}
return 0;
}
Q2.[10 Marks]. Modify the program above so that it
displays the sum of these integers and the lowest
integer.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply