randomposts
Powered by Blogger.
Showing posts with label Console Code(VB). Show all posts

ASCII Value Program Code in Console Application VB

No comments

#ASCII Value Program Code Here..
Module Module1 /* Modile1 is an  name of the Console Module */

    Public name(20) As Char
    Public i, s As Integer
    Sub Main()
        System.Console.Write("Enter Your Name:__")
        name = System.Console.ReadLine()
        s = name.Length - 1
        System.Console.WriteLine("Ascii Value:=")
        For i = 0 To s
            System.Console.WriteLine(name(i) & ":" & Asc(name(i)))
        Next
        System.Console.Read()
    End Sub

End Module

Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).

EQUATION_EVOLUATION Programming Code in Console Application VB

No comments




# Here Programming Code is an EQUATION_EVOLUATION
Module Module1 /*Module1 is an name of module*/

    Public a, b, c, d As Integer
    Sub Main()
        System.Console.Write("Enter Value of A :")___(Don't Missing Syntax required)*
        a = System.Console.ReadLine___(Don't Missing Syntax required)*

        System.Console.Write("Enter Value of B :")___(Don't Missing Syntax required)*
        b = System.Console.ReadLine___(Don't Missing Syntax required)*

        c = (a + a) - b
        d = (b + b) + a

        System.Console.WriteLine("Value of A :" & a)___(Don't Missing Syntax required)*
        System.Console.WriteLine("Value of b :" & b)___(Don't Missing Syntax required)*
        System.Console.WriteLine("Value of c :" & c)___(Don't Missing Syntax required)*
        System.Console.WriteLine("Value of d :" & d)___(Don't Missing Syntax required)*

        System.Console.Read()


    End Sub

End Module


Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).

Odd-Even Programming Code in Console Application Visual Studio

No comments


#BELOW PROGRAMMING CODE ODD-EVEN CONSOLE  HERE...

Module oddeven /* oddeven is an Module Name */
    Dim i As Integer

    Sub Main()
        System.Console.Write("Enter Your Number:-")___(Don't Missing Syntax required)*
        i = System.Console.ReadLine___(Don't Missing Syntax required)*
        If (i Mod 2 = 0) Then
            System.Console.WriteLine("Even Number")___(Don't Missing Syntax required)*
        Else
            System.Console.WriteLine("odd")___(Don't Missing Syntax required)*

        End If
        System.Console.Read()___(Don't Missing Syntax required)*
    End Sub

End Module

Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).

Leap Year Programming Code in Console Application on Visual Studio

No comments



# Leap Year Console Programming Code Here...

Module leapyear   /*  Module Name*/

    Sub Main()
        Dim i As Integer
        System.Console.Write("Enter your Year")
        i = System.Console.ReadLine()
        If (i Mod 4 = 0) Then
            System.Console.Write("Leap year")
        Else
            System.Console.Write("Not Leap Year")
        End If
        System.Console.Read()
    End Sub

End Module

Prime Or Not Prime Number Code in Console Application on VB

No comments
© Yagnik Gorasiya Console Program Code VB



#CODING HERE...

Module Module1

    Sub Main()
        Dim i, j, x, y As Integer
        System.Console.WriteLine("Enter No:")
        x = System.Console.ReadLine
        j = 1
        While (j <= x)
            If (x Mod j = 0) Then
                y = y + 1

            End If
            j = j + 1
            If (y = 2) Then
                System.Console.WriteLine("No Is Prime")
            Else
                System.Console.WriteLine("No Is Not Prime")
            End If
            System.Console.Read()

        End While

    End Sub

End Module