Run Code
|
API
|
Code Wall
|
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
Area and Parameter of Circle
Hello-Newark-World
Wait
SpiltStringBetweenSpecialCharacters
swapping
remove dups
h
C# Dictionary with Enum Keys And Values
dgh ret ertfh fhf hft85487
gass