none
How do i make a Code for this in Visual Basic Console Application C#

Answers

  • see the code

     Sub Main()
        Console.WriteLine("First programs start here. give input ")
        Dim amount As Integer = Console.ReadLine()
    
        If amount > 10000 Then
          Console.WriteLine(amount * 10 / 100)
        End If
    
    
        Console.WriteLine("second program start here give input")
    
        Dim monthNum As Integer = Console.ReadLine()
        If monthNum > 12 Then
          Console.WriteLine("No month")
        Else
          Dim strDate As New DateTime(1, monthNum, 1)
          Console.WriteLine(strDate.ToString("MMMM"))
        End If
    
        Console.WriteLine("Program end")
        Console.ReadLine()
      End Sub
    



    Faraz
    • Proposed as answer by Neddy Ren Monday, August 15, 2011 9:28 AM
    • Marked as answer by Neddy Ren Thursday, August 25, 2011 3:29 AM
    Saturday, August 13, 2011 12:48 PM