Write a C program to Remove even numbers and fill it with zeros.
Note: You can use only one loop for your logic.
Two variables apart from the array.
Input array 1,2,3,4,5,6
Output 1,3,5,0,0,0
sureshshan1292
0
Newbie Poster
Recommended Answers
Jump to PostSo, you want us to do your homework for you? :-( Not going to happen! Make an honest effort and if you are still having problems, post the code here and we might decide to help you... DO NOT CHEAT!
Jump to PostFWIW, these are basic CS math problems. See your professor if you need help understanding the problems.
Jump to PostWork on indenting your code properly for starters.
Jump to Postbrother, these aren't my homework problems.these are the questions which are asked in last interview. i couldnt code for these questions. so i posted these questions here. so that someone will comment the code.
"These aren't homework questions, they're just questions I was given to do that I ā¦
Jump to PostCode is helpful, but logic (often called pseudo-code) can be more so in order to see what your thought processes are in solving the problems.
All 45 Replies
sureshshan1292
0
Newbie Poster
sureshshan1292
0
Newbie Poster
sureshshan1292
0
Newbie Poster
sureshshan1292
0
Newbie Poster
sureshshan1292
0
Newbie Poster
sureshshan1292
0
Newbie Poster
sureshshan1292
0
Newbie Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
nitin1
commented:
true!!
+2
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
sureshshan1292
0
Newbie Poster
sureshshan1292
0
Newbie Poster
sureshshan1292
0
Newbie Poster
iamthwee
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
nitin1
15
Master Poster
somjit{}
commented:
80% ? hmm....
+0
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
harini angelina
0
Newbie Poster
shintoz
0
Newbie Poster
Adak
419
Nearly a Posting Virtuoso
sureshvarman
0
Newbie Poster
madhana.gopal.902
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Vish0203
-6
Junior Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Vish0203
-6
Junior Poster
Vish0203
-6
Junior Poster
Gonbe
32
Newbie Poster
Gonbe
32
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.