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 use of console application?

0 Answers  


Explain the advantages of vb.net?

0 Answers  


What are the two main parts of .net?

0 Answers  


What is the Difference between Dataset and Datareader?

7 Answers  


described weak typing?

0 Answers  






Can you please explain the difference between authentication and authorization?

0 Answers  


What is redim keyword?

0 Answers  


What is the top .net class that everything is derived from?

0 Answers  


Define serialization in .net?

0 Answers  


How to connect crystal report in vb.net ?

0 Answers  


Explain public assembly?

0 Answers  


Define clr?

0 Answers  


Categories