-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfotocopiadora.cs
36 lines (32 loc) · 902 Bytes
/
fotocopiadora.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
/////////////////////
class fotocopiadora
{
static void main()
{
int hojas;
double total;
////////////////////////
Console.clear();
////////////////////////
Console.write("ingresa la cantidad de hojas por favor");
hojas - int.Parse(Console.ReadLine());
////////////////////////
total = 20 * hojas;
if (hojas > 30)
{
total*= 0.90;
}
//////////////////////////
Console.writeLine("Presiona una tecla para continuar")
Console.ReadKey();
//////////////////////////
Console.Clear();
//////////////////////////
Console.writeLine("\n *****BOLETA*******");
Console.writeLine("$ cantidad de hojas {hojas}");
Console.writeLine("valor por hojas $20");
Console.writeLine("TOTAL $ {total: F2}");
}
}
/////////////////////////