Código Secuencial Y Estructurado en C++
Código Secuencial Y Estructurado en C++
#include <iostream>
using namespace std;
Module Module1
Sub Main()
'Operandos
Dim OperandoA As Double, OperandoB As Double
Dim Suma As Double, Resta As Double
Dim Multiplicacion As Double, Division As Double
'Leer valores para los operandos
Console.WriteLine(vbCrLf & "Introducir operandos:")
OperandoA = Double.Parse(Console.ReadLine())
OperandoB = Double.Parse(Console.ReadLine())
'Procesar operaciones
Suma = OperandoA + OperandoB
Resta = OperandoA - OperandoB
Multiplicacion = OperandoA * OperandoB
Division = OperandoA / OperandoB
'Mostrar resultados
Console.WriteLine(vbCrLf & "********* RESULTADOS ************" _
& vbCrLf & vbTab & "Suma: " & Suma _
& vbCrLf & vbTab & "Resta: " & Resta _
& vbCrLf & vbTab & "Multiplicacin: " & Multiplicacion _
& vbCrLf & vbTab & "Divisin: " & Division _
& vbCrLf & vbCrLf & _
"*********************************")
'Detener pantalla
Console.ReadLine()
End Sub
End Module
CDIGO ORIENTADO A EVENTOS VISUAL BASIC