subject

Double any element's value that is less than minval. ex: if minval = 10, then datapoints = {2, 12,9, 20) becomes {4, 12, 18, 20).

#include

int main(void) {
const int num_points = 4;
int datapoints[num_points];
int minval;
int i;
scanf("%d", & minval);
for (i = 0; i < num_points; ++i)
{ scanf("%d ", & (datapoints[i])); }
for (i = 0; i < num_points; ++i)
{ printf("%d ", datapoints[i]); }
printf("\n");
return 0; }

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
How will you cite information that is common knowledge in your research paper?
Answers: 1
question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
You know the right answer?
Double any element's value that is less than minval. ex: if minval = 10, then datapoints = {2, 12,9...
Questions
question
Mathematics, 16.07.2019 20:20
Questions on the website: 13722363