CS
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
int t =Convert.ToInt32(Console.ReadLine());
// price of 1 kaleid
int p = t*5;
double discount = 0.1;
double taxes = 0.07;
// price only with discount
double d = p - p*discount;
// price only with taxes
double tax = p + p*taxes;
// price with disc and taxes
// if the input t(3) the tp output is 14.445 , task want the output to be 14.45, what ive done wrong where?
double td = d + d*taxes ;
// totalprice
double tp;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run