SHARE
TWEET

mz1239012019 (C# Shell App Paste)

a guest Sep 21st, 2019 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Disclaimer: The creator of 'C# Shell (C# Offline Compiler)' is in no way responsible for the code posted by any user.
  2. using System;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Collections.Generic;
  6.  
  7. namespace Alexis Méndez
  8. {
  9.  
  10.     public class Mz1239012019
  11.     {
  12.           int TA;
  13.           int P;
  14.           int K;
  15.           int GA;
  16.           string TI;
  17.           Console.WriteLine("Bienvenido Ingrese su número de kilos");
  18.           TA=Convert.ToInt32(Console.ReadLine());
  19.           P=Convert.ToInt32(Console.ReadLine());
  20.           K=Convert.ToInt32(Console.ReadLine());
  21.           GA=Convert.ToInt32(Console.ReadLine());
  22.           TI=Convert.ToString(Console.ReadLine());
  23.          
  24.           if (TI == a){
  25.             if (TA = 1);
  26.             P = P + 0.20
  27.            
  28.           }else
  29.           Console.WriteLine(P = P + 0.30);
  30.          
  31.           if(TA = 1){
  32.           Console.WriteLine (P = P - 0.30);
  33.            
  34.             else{
  35.                 Console.WriteLine (P = P - 0.50);
  36.                
  37.                 Console.WriteLine(GA = P * K);
  38.            
  39.                
  40.                 Console.WriteLine(" La ganancia es "GA" " );
  41.                            
  42.            
  43.            
  44.            
  45.             Console.Write("\n Presione una tecla para continuar . . . ");
  46.             Console.ReadKey(true);
  47.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top