Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Calculadora
- {
- public static void Main (string[] args)
- {
- int a = Convert.ToInt32( args[0] );
- int b = Convert.ToInt32( args[1] );
- // Realiza operaciones aritméticas básicas
- Console.WriteLine ("La adición de {0} y {1} es {2}.", a, b, (a+b));
- Console.WriteLine ("La sustracción de {0} y {1} es {2}.", a, b, (a-b));
- Console.WriteLine ("El producto de {0} y {1} es {2}.", a, b, (a*b));
- Console.WriteLine ("El cociente de {0} y {1} es {2}.", a, b, (a/b));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement