Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Disclaimer: The creator of 'C# Shell (C# Offline Compiler)' is in no way responsible for the code posted by any user.
- using System;
- using System.IO;
- using System.Linq;
- using System.Collections.Generic;
- namespace Alexis Méndez
- {
- public class Mz1239012019
- {
- int TA;
- int P;
- int K;
- int GA;
- string TI;
- Console.WriteLine("Bienvenido Ingrese su número de kilos");
- TA=Convert.ToInt32(Console.ReadLine());
- P=Convert.ToInt32(Console.ReadLine());
- K=Convert.ToInt32(Console.ReadLine());
- GA=Convert.ToInt32(Console.ReadLine());
- TI=Convert.ToString(Console.ReadLine());
- if (TI == a){
- if (TA = 1);
- P = P + 0.20
- }else
- Console.WriteLine(P = P + 0.30);
- if(TA = 1){
- Console.WriteLine (P = P - 0.30);
- else{
- Console.WriteLine (P = P - 0.50);
- Console.WriteLine(GA = P * K);
- Console.WriteLine(" La ganancia es "GA" " );
- Console.Write("\n Presione una tecla para continuar . . . ");
- Console.ReadKey(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement