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. //wor 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 method RemoveAt() //you can google if needed //TODO: //write your code here // output results foreach(int w in q) { Console.WriteLine(w); } } } }
run
|
edit
|
history
|
help
0
sortowanie ( jaka )? wybor? confirm it!
Comp 3
conditional Debug
SevenSevenSeven
Matrix Main Diagonal
adxasxd
C# program to Determine if Two Words Are Anagrams of Each Other
3. Delegates and events
abebe
problem