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
- Describe The Problem With Two- Tier Server Dbms Architecture?
- What Is The Difference Between Two-tier And Three Tier Client Server Architecture?
- How To Make A Simple Programming?
- What Is A Structured Form?
- Compile A 1000 To1250 Word Survival Guide That Serves As A Resource Throughout Your Program?
- How Many Numbers Between 1 And 1000 Have An Odd Quantity Of Divisors?
- What Are The Service In Rmi?
- How To Do Loop Stitch For Attaching Palette's?
- Generate An Object-oriented Design For A System That Keeps Tracks Of Your CD And DVD Collection?
- What Is Local Procedural Call?
- What Are Difference Between Local And Remote Procedural Call?
- How Can I Compress Image Through Java?
- How To Enable Java Script On Windows Vista?
- How To Et Rid Of Error 1606?
- How To Enable Javascript On A Cricket Captr A200 Cell Phone With A 6.3.0.7."Openwave" Browser That I Cant Change Either,or Can I?
- How To Enable Javascript On A Cricket A200?
- How Can I Create A Online Banking Database?
- What I S Java Script?
- 1.7. What Is A Database System?
- How To Make Use-case Diagram , Class Diagram,Activity Diagram For Car Services?
- What Is Deference Between If Statement And Switch Statement?
- What Does |= And &= Means In C++?
- Cheat Sheet On Java Programming How To Use Methods, Arrays,loops,number-counters?
- 2. What Is Conditional Operator?
- 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.