1234
123
12
1
how to design above pic in vb.net?

Answers were Sorted based on User's Feedback



1234 123 12 1 how to design above pic in vb.net?..

Answer / sonia

Sub main()

Dim i, j As Integer
For i = 4 To 1 Step -1
For j = 1 To i
Console.Write(j)
Next
Console.WriteLine()
Next

Console.ReadLine()
End Sub
End Module

Is This Answer Correct ?    10 Yes 1 No

1234 123 12 1 how to design above pic in vb.net?..

Answer / viji

Sub main

Dim j As String
Dim i As Integer

j = 1234

For i = Len(j) To 1 Step -1
Console.Write(Mid(j, 1, i))
Console.WriteLine()

Next
End Sub

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More VB.NET Interview Questions

What is the Difference between Web User Control and Web Custom Control?

6 Answers   Benchmark,


What is static member?

0 Answers  


Is vb net a scripting language?

0 Answers  


What is the diff between vb mdi form and .net mdi form?

0 Answers  


What is intermediate langauge?

0 Answers  






Explain convert.tostring and i.tostring method?

0 Answers  


Which is the base class for all the classes in .net framework?

0 Answers  


Explain namespace?

0 Answers  


Can you please explain the difference between dataset and datareader?

0 Answers  


Is vb.net a programming language?

0 Answers  


how to get dynamic control array position or its index position?

0 Answers   CMC,


Name a feature which is common to all .net languages?

0 Answers  


Categories