0% found this document useful (0 votes)
38 views1 page

Using Using Using Using Using Namespace Class Static Void String Int String Int Int Do

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views1 page

Using Using Using Using Using Namespace Class Static Void String Int String Int Int Do

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EstructuraRepetitivaDoWhile5
{
class Program
{
static void Main(string[] args)
{
int cuenta;
string linea;
int suma = 0;
int saldo;
do
{
Console.Write("Ingrese número de cuenta:");
linea = Console.ReadLine();

cuenta = int.Parse(linea);
if (cuenta >= 0)
{
Console.Write("Ingrese saldo:");
linea = Console.ReadLine();
saldo = int.Parse(linea);
if (saldo > 0)
{
Console.WriteLine("Saldo Solvente.");
suma = suma + saldo;
}
else
{
if (saldo < 0)
{
Console.WriteLine("Saldo Con Deuda.");
}
else
{
Console.WriteLine("Sin Saldo.");
}
}
}
} while (cuenta >= 0);

Console.ReadKey();
}
}
}

You might also like