Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Is there a good way to use order of operation in programming? How could you write this equation in code for example? x = 2(100 - 50)
You must be overthinking it :)
var x = 2 * (100 - 50);
As said in the comments, the best way to learn is often to try it out for yourself!
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
How to invert logic on recursive calls?
I have this solve that counts the number of recursive calls. It's working properly. But how can I invert the logic to count number
In C# you can simply invert a statement using ! so it would be != instead of ==
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am trying to find a way to work out the progress percentage towards a weight goal. I have searched and searched and can not find a way or example online.
Language: C#
Example:
Starting Weight: 123.20kg
Current Weight: 120.01kg
Goal: 101.61kg
Your goal is to lose 123.20 - 101.61 = 21.59 kg.
So far you have lost 123.20 - 120.01 = 3.19 kg
So you have accomplished 3.19/21.59 = 14.78% of your goal.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am explaining the purpose and usage of the C# params (C++CLI ...array) keyword to my colleague and wanted to show him some functions of .net that make use of it. But right know I don't remember any.
For those who want to answer: Feel free to list as many as you know. But I would be happy with one already.
string.Format("It is now {0}.", DateTime.Now)
Console.WriteLine("It is now {0}.", DateTime.Now)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to compare two strings on percentage basis
like i have this
Player and wmplayer
Manager and IDMan
Mail and WINMail
Explorer and iexplorer
Any Help Please
You can probably make use of a library such as ScoreSharp. It is designed to do fuzzy matching to find similarities between strings.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
How to print in C# - but not through crystal-report?
Can I get some simple sample code?
Look into the System.Drawing.Printing.PrintDocument class.
There's also a good tutorial here:
http://www.dreamincode.net/forums/showtopic44330.htm
this may be wrong because i'm dumb founded by the last part but to print you type "Console.WriteLine("whatever ur gonna print");"