Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Task 1_4
using System; using System.Collections.Generic; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Console.WriteLine("Hello, world!"); List<int> q = new List<int>(new int[] { 1,2,3,0,4,0,0,5,6,7,0,8,0,9,0,0}); //don't use LINQ, don't create a new lists, arrays, objects, etc. //work only with object q //don't use method Remove() //don't use method RemoveAll() //don't use Sort //don't use while //type your solution below, with for() or foreach() you need to iterate the list q and remove all zeros //USE the method RemoveAt() //you can google if needed //TODO: //write your code below // output results foreach(int w in q) { Console.WriteLine(w); } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Factory Method Design Pattern
Test Random
bro
Decimal Test2
Quadratic equation
reverse a stack
Fórum ➡ Parallel Threads ( The Funniest Version ) ♦
pass-len-to-predicate-modified
tablecsv
07-05-20
Please log in to post a comment.