Could You Tell Me The Output Of This C#program?
Int i = 5br>string s = Convert.ToString(i);
double d = Convert.ToDouble(i);
Console.writeline(s);
i mean what would be the output for this?....it prints 5 on the screen.Does it show the correct output?
1 Answer - Sort by: Date | Rating
Int i = 5; // Define an integer constant and assign the value of 5
string s = Convert.ToString(i); // Define a string constant; convert the integer to a printable character string
double d = Convert.ToDouble(i); // Define a double precision floating point number; convert the integer to floating point
Console.WriteLine(s); // Write the string which is a "5" to the standard output; usually the screen
string s = Convert.ToString(i); // Define a string constant; convert the integer to a printable character string
double d = Convert.ToDouble(i); // Define a double precision floating point number; convert the integer to floating point
Console.WriteLine(s); // Write the string which is a "5" to the standard output; usually the screen
2
0
- Define The Concept Of Java Byte Code?
- What Are The Various Keys In Sql?
- How To Run Remote Method Invocation In More Machine?
- What Is Role Of Compiler?
- How To Run Java Remote Method Invocation In More Machine?
- What Is Database Development?
- What Is External Level?
- Why Does Multiprogramming Used?
- How To Create A Flowchart That Will Ask The User To Enter A Number?
- What Are The Component Of Database?
- How To Make A Java Program That Will Ask The User To Input A Number And Display All The Even Number And The Sum Of All Even Numbers Based On The Inputted/ Given Numbers?
- Write A Program That Computes The Factorial Value Of N (as Input) And Displays It?
- A C++ Program That Will Ask At Least 10 Information From The User And Display All The Information Inputted?
- Were I Can Write With The Keyboard?
- Is A Static Variable An Instance?
- Define 1NF, 2NF, 3NF. Give An Example Of Each?
- What Have You Learnt From Your Mistakes?
- How To Compile And Run Java Package?
- What Is CAPTCHA?
- Why Is The Top E String Sharp?
- Can You Convert Octal 11001?
- . Write A Program That Has Two Functions "Binary " And "Octal". The Functions Accept An Integer & Print The Binary & Octal Representation Of The Number Respectively?
- What' The Meaning Of Visual Representations?
- How To Get Total And Average Of 3 Numbers In Java Script?
- What Are Integrity Rules?
- Can You Write A Program That Will Output The Following Pattern?
- Write A Program To Print The Following Output Using The For Loop. 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5?
- Can You Write A Program To Input A Number And Output Double Of Its?
- C++ Program Code That Ask The User To Enter 5 Numbers And Output The Largest And Smallest Number?

New Comment - Comments are editable for 5 min.