Google News
logo
C# - Quiz(MCQ)
How do you create a variable with the floating number 2.8?
A)
int x = 2.8;
B)
int x = 2.8D;
C)
byte x = 2.8
D)
double x = 2.8D;

Correct Answer :   double x = 2.8D;

Advertisement