2.
{
double x, y;
Console.Write("x=");
x = Convert.ToDouble(Console.ReadLine());
y = x + 9;
Console.WriteLine("y= " + y);
Console.ReadKey();
}
3.
double y,z;
Console.Write("y = ");
y = Convert.ToDouble(Console.ReadLine());
z = 17 - y;
Console.WriteLine("z = " + z);
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
2.
{
double x, y;
Console.Write("x=");
x = Convert.ToDouble(Console.ReadLine());
y = x + 9;
Console.WriteLine("y= " + y);
Console.ReadKey();
}
3.
{
double y,z;
Console.Write("y = ");
y = Convert.ToDouble(Console.ReadLine());
z = 17 - y;
Console.WriteLine("z = " + z);
Console.ReadKey();
}