You are viewing a single comment's thread. Return to all comments →
double a = 4.0; double b = 4.0; I formatted the result doing this: Console.WriteLine(string.Format("{0:0.0}", a + b));
it works when I ran the code, but when I submitted the code it say me wrong answer.
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Data Types
You are viewing a single comment's thread. Return to all comments →
double a = 4.0; double b = 4.0; I formatted the result doing this: Console.WriteLine(string.Format("{0:0.0}", a + b));
it works when I ran the code, but when I submitted the code it say me wrong answer.