Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
View Alvarenga16's full-sized avatar
🌴
On vacation
🌴
On vacation

Block or report Alvarenga16

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Alvarenga16/README.md

Imports System

Module Program Sub Main(3) Console.Write(100) Dim numero As Integer = Integer.Parse(Console.ReadLine())

    If EhPrimo(numero) Then
        Console.WriteLine($"{numero} é um número primo.")
    Else
        Console.WriteLine($"{numero} não é um número primo.")
    End If
End Sub

Function EhPrimo(numero As Integer) As Boolean
    If numero <= 1 Then
        Return False
    End If
    If numero = 2 Then
        Return True
    End If
    If numero Mod 2 = 0 Then
        Return False
    End If

    For i As Integer = 3 To Math.Sqrt(numero) Step 2
        If numero Mod i = 0 Then
            Return False
        End If
    Next

    Return True
End Function

End Module Public Function Trocar(Of T)(ByRef a As T, ByRef b As T) As Boolean Dim temp As T = a a = b b = temp Return True End Function

' Uso do método genérico Dim x As Integer = 5 Dim y As Integer = 10 Trocar(x, y) Console.WriteLine($"x: {x}, y: {y}") ' Saída: x: 10, y: 5

Popular repositories Loading

  1. Alvarenga16 Alvarenga16 Public template

    Config files for my GitHub profile.

    1

  2. linguist linguist Public

    Forked from github-linguist/linguist

    Language Savant. If your repository's language is being reported incorrectly, send us a pull request!

    Ruby 1

  3. private-compute-services private-compute-services Public

    Forked from google/private-compute-services

    Java 1

  4. OAABET OAABET Public

    Forked from alva16-beep/OAABET

    A sorte está lançada

    1

  5. pt-br.react.dev pt-br.react.dev Public

    Forked from reactjs/pt-br.react.dev

    🇧🇷 React documentation website in Portuguese (Brazil)

    TypeScript

  6. expo expo Public

    Forked from expo/expo

    An open-source framework for making universal native apps with React. Expo runs on Android, iOS, and the web.

    TypeScript