# Example 1
using System;
class MainClass
{
public static void Main ()
{
string name = "Faisal";
string car = "Suzuki Mehran";
int year = 2012;
int price = 700000;
string line1 = $"{name} bought a {car} in {year}";
string line2 = $"It cost him Rs. {price}";
int depreciationYear = 2020;
int depreciationValue = 30;
string line3 = $"In year {depreciationYear}, it's value is Rs.";
string line4 = $"{price - price * depreciationValue/ 100}";
Console.WriteLine(line1);
Console.WriteLine(line2);
Console.Write(line3);
Console.WriteLine(line4);
}
}
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
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