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 7 years ago.
Improve this question
When using C programming language, I have no idea how to put a user input to an array.
I need to get integers from the user in from of:
printf("Enter numbers. Separate each by a comma: ");
How can I put each number into an array?
This is a very helpful link
Also look up this too for clarification on Console.Read & Console.Readline
Difference between Console.Read() and Console.ReadLine()?
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 3 days ago.
Improve this question
In the email input field before "#" need to fix that character 6 - 32. How to fix this issue?
I tried Regex validations but it won't work what I expect!
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 days ago.
Improve this question
How to make sparse array c language without condition i !=0 ??
I tried i!=0 condition but teacher doesn't want that
Teacher wants another path ??
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
I've the following number: 14.2423421. This number is a float. I want to convert it into 142423421. So, I want the same number, without the point. It has to be an int. Obviously it mustn't be a string type. How to do it? Thank you everybody!
Count the number of decimals as suggested here and multiply your number by 10^(number of decimals)
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 wrote this code in my project but every time i run it the answer is diffrent.
]1
Initialize sum with a value of 0. The reason it is different every time is you are calling sum which you never assigned a value. Anything could be in memory where sum is stored, which is why your results are inconsistent.
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 years ago.
Improve this question
For example, let's say I have the decimal number 10.
I want to be able to go form an integer of 10 to a string of "0a".
How do I do that?
Note: I don't want anything printed out.
You can use sprintf to represent a numeric value in hexadecimal format:
sprintf(buff, "%0.2x\n", 10)
Take also a look at dmckee's comment on int/hexadecimal misunderstanding.