VB.Net Program to print Numbers 1 to N in Right Triangle Format Module Module1     Sub Main()         Dim sum As Integer = 0, i As Integer, k As Integer, n As Integer         Console.WriteLine(“*** www.programmingposts.com ***”)         Console.WriteLine(vbLf & “>>> VB.Net Program to print Numbers 1..n as Right Triangle… Continue Reading VB.Net Program to print Numbers 1 to N in Right Triangle Format

In this article we will see a small example of using constants in vb.net . constants are declared with a keyword const . Example :      ConstPI As Double = 3.14    ConstmyStr As String= “*** www.ProgrammingPosts.blogspot.com ***”   The program below is to find the area and perimeter of… Continue Reading Declaring constants in VB.Net

In this post we will see a VB.Net Program to retrieve list of file names in a given folder/directory.   Imports System.IO Module Module1 Sub Main() Try Dim FolderPath As String Dim Files As String() ‘declaring string array Console.WriteLine(“www.ProgrammingPosts.blogspot.com”) Console.WriteLine(vbLf & “>>>VB.NET PROGRAM To PRINT FILES NAMES IN A Given… Continue Reading VB.NET Program to get File Names in a Folder / Directory

In this post we will see a VB.Net Program to retrieve list of file names with full path in a given folder/directory.   Imports System.IO Module Module1 Sub Main() Try Dim FolderPath As String Dim Files As String() ‘string array Console.WriteLine(“www.ProgrammingPosts.blogspot.com”) Console.WriteLine(vbLf & “>>>VB.NET PROGRAM To PRINT FULL FILES PATH… Continue Reading VB.NET Program to get Files Full Path in a given Folder

  Module Module1 Sub Main() Dim size As Integer Dim a As Integer = 0 Dim i As Integer, j As Integer, k As Integer, count As Integer = 0, flag As Integer = 0 Do Try Console.WriteLine(“www.ProgrammingPosts.blogspot.com”) Console.WriteLine(vbLf & “>>>VB.NET PROGRAM To PRINT A MULTI-DIMENSIONAL ARRAY IN A SNAIL… Continue Reading VB.NET Program to print Matrix in a Snail Shell Way

  Module Module1 Sub Main() ‘using 2D-ARRAYS Dim RowSize As Integer = 5, ColSize As Integer = 5 ‘declaring 2-d arrays below Dim Matrix1 As Integer(,) = New Integer(RowSize – 1, ColSize – 1) {} Dim Matrix2 As Integer(,) = New Integer(RowSize – 1, ColSize – 1) {} Dim ResultMatrix… Continue Reading VB.Net Program to Perform Subtraction on Matrices using Arrays

  Module Module1 Sub Main() ‘using 2D-ARRAYS Dim RowSize As Integer = 5, ColSize As Integer = 5 ‘declaring 2-d arrays below Dim Matrix1 As Integer(,) = New Integer(RowSize – 1, ColSize – 1) {} Dim Matrix2 As Integer(,) = New Integer(RowSize – 1, ColSize – 1) {} Dim ResultMatrix… Continue Reading VB.Net Program to Add Two Matrices

Module Module1 Sub Main() Dim a As Integer = 1, b As Integer = 2, i As Integer Console.WriteLine(“www.ProgrammingPosts.blogspot.com”) Console.WriteLine(vbLf & ” >>VB.Net PROGRAM TO PRINT SMILEY SYMBOL <<” & vbLf) Console.WriteLine(vbLf & “ASCII SYMBOL OF 1” & vbLf) For i = 0 To 99 ‘for loop prints ascii symbol… Continue Reading VB.NET Program to Print Smiley Symbol

  Module Module1 Sub Main() Dim a As Integer = 3, i As Integer Console.WriteLine(“www.ProgrammingPosts.blogspot.com”) Console.WriteLine(vbLf & ” >>VB.Net PROGRAM TO PRINT LOVE SYMBOL <<” & vbLf) For i = 0 To 249 ‘for loop prints love symbol 250 times Console.Write(ChrW(a)) Next ‘Console.Write((char)3) ‘this also prints the same Console.ReadKey() End… Continue Reading VB.NET Program to Print Love Symbol

Module Module1 Sub Main() Dim num As Integer, i As Integer, fact As Integer = 1 Console.WriteLine(“www.ProgrammingPosts.blogspot.com”) Console.WriteLine(vbLf & ” >>VB.Net PROGRAM TO FIND FACTORIAL OF GIVEN NUMBER <<” & vbLf) Console.Write(vbLf & ” Enter the Number whose Factorial you want: “) num = Convert.ToInt32(Console.ReadLine()) For i = num To… Continue Reading VB.Net Program to Find Factorial of given Number

Module Module1 Sub Main() Dim num As Integer, remainder As Integer, sum As Integer = 0, temp As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(vbLf & ” >>>> To Find a Number is Palindrome or not <<<< “) Console.Write(vbLf & ” Enter a number: “) num = Convert.ToInt32(Console.ReadLine()) temp = num While… Continue Reading VB.Net Program to find the Number Palindrome or not

  Module Module1 Sub Main() Dim num As Integer, remainder As Integer, sum As Integer = 0, rev As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(vbLf & ” >>> VB.NET Program To Find Reverse Of a Number <<<“) Console.Write(vbLf & ” Enter a number: “) num = Convert.ToInt32(Console.ReadLine()) While Convert.ToBoolean(num) remainder =… Continue Reading VB.Net Program to Print Reverse of a Number

Module Module1 Sub Main() Dim sum As Integer = 0, i As Integer, n As Integer Console.WriteLine(“*** www.programmingposts.blogspot.com ***”) Console.WriteLine(vbLf & “>>> VB.Net Program to print Sum of Series 1+2+3+..+n <<<“) Console.Write(vbLf & ” Enter the nth number of series: “) n = Convert.ToInt32(Console.ReadLine()) ‘taking input, converting to Int For… Continue Reading VB.Net Program to Print Sum Of Series 1+2+3+..+n

  Module Module1 Sub Main() Dim x, y As Integer Dim result As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(“>>> VB.NET PROGRAM FOR PRODUCT OF TWO NUMBERS <<< “) ‘vblf gets the cursor to next line in console Console.Write(vbLf & ” Enter the first number : “) ‘ reading 1st number from… Continue Reading VB.Net Program to get Product of two Numbers

  Module Module1 Sub Main() Dim x As Integer, y As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(“>>> VB.NET PROGRAM TO ADD TWO NUMBERS WITHOUT USING THIRD VARIABLE <<< “) ‘vblf gets the cursor to next linein console Console.Write(vbLf & ” Enter the first number to be added: “) ‘ taking x… Continue Reading VB.Net Program to ADD two INTEGERS without using THIRD VARIABLE

VB.NET PROGRAM TO ADD TWO NUMBERS / INTEGERS USING FUNCTION Module Module1 Sub Main() Dim x, y, result As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(“>>> VB.NET Console program to add two integers <<<“) Console.Write(” Enter the first number to be added: “) x = Convert.ToInt32(Console.ReadLine()) Console.Write(” Enter the second number to… Continue Reading VB.NET PROGRAM TO ADD TWO NUMBERS / INTEGERS USING FUNCTION

In this post, we will see a VB.Net Program to read two number inputs from user and display the sum. The program below accepts two numbers from user and perform basic arithmetic operation(addition) using + operator and display the sum on screen. For algorithm & flowchart to add two numbers, go… Continue Reading VB.NET PROGRAM TO ADD TWO NUMBERS / INTEGERS