Click here to Skip to main content
16,020,343 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access Android Tablet from C# Pin
OriginalGriff31-Mar-22 19:49
mveOriginalGriff31-Mar-22 19:49 
QuestionError when parsing string as int Pin
Member 1558328029-Mar-22 5:19
Member 1558328029-Mar-22 5:19 
AnswerRe: Error when parsing string as int Pin
Dave Kreskowiak29-Mar-22 5:33
mveDave Kreskowiak29-Mar-22 5:33 
QuestionFind the smallest integer that is not in a random array Pin
Member 1204230226-Mar-22 8:01
Member 1204230226-Mar-22 8:01 
AnswerRe: Find the smallest integer that is not in a random array Pin
OriginalGriff26-Mar-22 8:22
mveOriginalGriff26-Mar-22 8:22 
GeneralRe: Find the smallest integer that is not in a random array Pin
Member 1204230226-Mar-22 8:29
Member 1204230226-Mar-22 8:29 
GeneralRe: Find the smallest integer that is not in a random array Pin
OriginalGriff26-Mar-22 8:46
mveOriginalGriff26-Mar-22 8:46 
GeneralRe: Find the smallest integer that is not in a random array Pin
Member 1204230226-Mar-22 9:51
Member 1204230226-Mar-22 9:51 
I made the initial code as below:

using System;
 
public class Program
{
    public static void Main(string[] args)
    {
        int N = 10;
        int[] array = new int[N];
        Random rnd = new Random();
        for (int i = 0; i < N; i++)
        {
            array[i] = rnd.Next(10000);
        }
        for (int j = 0; j < N; j++)
        {
            Console.Write(array[j])
        }
    }
}


But it fails to display any code. Can you please help? Thanks.
GeneralRe: Find the smallest integer that is not in a random array Pin
OriginalGriff26-Mar-22 11:43
mveOriginalGriff26-Mar-22 11:43 
GeneralRe: Find the smallest integer that is not in a random array Pin
Member 1204230226-Mar-22 12:17
Member 1204230226-Mar-22 12:17 
GeneralRe: Find the smallest integer that is not in a random array Pin
OriginalGriff26-Mar-22 20:05
mveOriginalGriff26-Mar-22 20:05 
AnswerRe: Find the smallest integer that is not in a random array Pin
Richard MacCutchan26-Mar-22 22:32
mveRichard MacCutchan26-Mar-22 22:32 
QuestionInserting Through Radionbutton and checkbox Pin
N Mohamed rafi25-Mar-22 23:20
N Mohamed rafi25-Mar-22 23:20 
AnswerRe: Inserting Through Radionbutton and checkbox Pin
OriginalGriff25-Mar-22 23:55
mveOriginalGriff25-Mar-22 23:55 
AnswerRe: Inserting Through Radionbutton and checkbox Pin
Richard MacCutchan26-Mar-22 0:19
mveRichard MacCutchan26-Mar-22 0:19 
GeneralRe: Inserting Through Radionbutton and checkbox Pin
Luc Pattyn26-Mar-22 9:24
sitebuilderLuc Pattyn26-Mar-22 9:24 
AnswerRe: Inserting Through Radionbutton and checkbox Pin
Craig Robbins26-Mar-22 3:36
Craig Robbins26-Mar-22 3:36 
GeneralRe: Inserting Through Radionbutton and checkbox Pin
N Mohamed rafi26-Mar-22 5:16
N Mohamed rafi26-Mar-22 5:16 
GeneralRe: Inserting Through Radionbutton and checkbox Pin
Craig Robbins26-Mar-22 12:42
Craig Robbins26-Mar-22 12:42 
Questionhow get dpi scale factor Pin
Le@rner22-Mar-22 21:29
Le@rner22-Mar-22 21:29 
AnswerRe: how get dpi scale factor Pin
Victor Nijegorodov22-Mar-22 22:28
Victor Nijegorodov22-Mar-22 22:28 
AnswerRe: how get dpi scale factor Pin
Richard MacCutchan22-Mar-22 22:36
mveRichard MacCutchan22-Mar-22 22:36 
GeneralRe: how get dpi scale factor Pin
Le@rner22-Mar-22 23:16
Le@rner22-Mar-22 23:16 
GeneralRe: how get dpi scale factor Pin
Richard MacCutchan22-Mar-22 23:19
mveRichard MacCutchan22-Mar-22 23:19 
GeneralRe: how get dpi scale factor Pin
Le@rner22-Mar-22 23:20
Le@rner22-Mar-22 23:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.