```
public class Solution {
public void MoveZeroes(int[] nums) {
int count=0,k=0;
for(int i=0;i<nums.Length;i++)
{
if(nums[i] != 0)
{
nums[k]=nums[i];
k++;
}
}
for(int j=k;j<nums.Length;j++)
nums[j]=0;
}
}
```