![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 17.03.2021 23:50 keltaylor
If someone can rewrite my work in the c program, the task must be accurate. I give I need an answer by tonight. So this is a task:
To pseudo-randomly draw 10 numbers, print them in a console and place them in a string of length 10, then take out all the odd numbers in a new string, sort them from the smallest to the largest, and print them in the console.
This is my work. ignore language in printf i just need some changes. Please help!
#include
#include
#include
#include
#include
#include
int main()
{
int i, m=0,niz[10],nizn[10],mz=0,pom;
srand(time(0));
printf("\n Izvlacenje pseudoslucajnih brojeva i popunjavanje niza:");
for( i=0; i<10; i++) {
niz[i]=rand();
printf("\n Izvuceni %d broj niza je %d", i, niz[i]);
}
for( i=0; i<10; i++) {
if(niz[i]%2==1){
nizn[m]=niz[i];
m=m+1;
}
}
printf("\n \n Broj neparnih brojeva je m=%d",m);
printf("\n \n Neparni brojevi novog niza su:");
for( i=0; i nizn[i+1]) {
pom=nizn[i+1];
nizn[i+1]=nizn[i];
nizn[i]=pom;
mz=1;
}
}
if (mz==1) {
goto ponovi;
}
printf("\n\n Sortiranjem neparnih brojeva dobijamo sledeci niz:");
for( i=0; i
printf("\n %d clan neparnog niza je %d",i, nizn[i]);
}
return 0;
}
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 19:20
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 08:30
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 17:30
List at least one thing to check for when you're checking the clarity and professionalism of a document.
Answers: 1
You know the right answer?
If someone can rewrite my work in the c program, the task must be accurate. I give I need an answer...
Questions
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.03.2021 22:20
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 25.03.2021 22:20
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 25.03.2021 22:20
![question](/tpl/images/cats/mat.png)
Mathematics, 25.03.2021 22:20
![question](/tpl/images/cats/mat.png)
Mathematics, 25.03.2021 22:20
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 25.03.2021 22:20
![question](/tpl/images/cats/mat.png)
Mathematics, 25.03.2021 22:20
![question](/tpl/images/cats/mat.png)
Mathematics, 25.03.2021 22:20
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 25.03.2021 22:20
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.03.2021 22:20
![question](/tpl/images/cats/istoriya.png)
History, 25.03.2021 22:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 25.03.2021 22:20