Answer:
The DoubleDecimalTest class is as follows:
using System;
class DoubleDecimalTest {
static void Main() {
double doubleNum = 173737388856632566321737373676D;
decimal decimalNum = 173737388856632566321737373676M;
Console.WriteLine(doubleNum);
Console.WriteLine(decimalNum); }
}
Explanation:
Required
Program to test double and decimal variables in C#
This declares and initializes double variable doubleNum
double doubleNum = 173737388856632566321737373676D;
This declares and initializes double variable decimalNum (using the same value as doubleNum)
decimal decimalNum = 173737388856632566321737373676M;
This prints doubleNum
Console.WriteLine(doubleNum);
This prints decimalNum
Console.WriteLine(decimalNum);
<em>Unless the decimal variable is commented out or the value is reduced to a reasonable range, the program will not compile without error.</em>
You would have 1234000 Megabytes
<span>A formal system of coded commands that provide instructions for a computer are
programming languages.
Correct answer: C
</span><span>The programming language specifies a set of instructions that can and should be used to guide a </span><span>computer to perform specific tasks and </span><span>produce a certain output.
</span>
Answer:
3
Explanation:
Given set - [ 5, 6, 10, 7, 3, 2.5 ]
Index - 0, 1 , 2, 3, 4, 5
∴ we get
Index of element 7 is 3.
Reason -
The method index( ) returns the lowest index in the list where the element searched for appears.