using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int a, b;
double c;
int q = 0;
double sum = 0;
Console.WriteLine(" enter the num of the battres");
a = int.Parse(Console.ReadLine());
while (a > 10)
{
q++;
Console.WriteLine(" enterthe haw much battry you need");
b = int.Parse(Console.ReadLine());
if (b > 10)
{
Console.WriteLine("try agan");
}
c = b * 2.5;
Console.WriteLine("the prese is" + c);
a = a - b;
sum = c + sum;
}
Console.WriteLine("the numbers of people how buy is" + q);
Console.WriteLine("the total mony is" + sum);
Console.ReadKey();
}
}
}