<p>I don't actually take a computer science course but what I would do is something like,</p>
<p>(1)
for(int i = 0; i<5;i++)
{
for(int it = 1;it<=5-i;it++)
{
cout << it;
}
cout << endl;
}</p>
<p>(2)
for(int i = 1; i<=5;i++)
{
for(int it = 1;it<=i;it++)
{
cout << i;
}
cout << endl;
}</p>
<p>(3) (looks the same as 2)</p>
<p>(4)
for(int i = 0; i<5;i++)
{
for(int it = 1;it<=i*2+1;it++)
{
cout << i+1;
}
cout << endl;
}</p>
<p>It looks like you might have lost some formatting, if you did then these wont work but the code should be similar. It's written in C++ so you'll have to convert it which is easy enough really. Just replace cout with System.Console.WriteLine() or whatever it is.</p>