samedi 13 mars 2021

How to add forloop in If-Else condition in c#?[CODEDOM]

How to execute the following code in Codedom:

if(statement)
{
    for(int = 0; i < 10; i++)
    {
       Console.WriteLine(i);
    }
}

I'm familiar with CodeIterationStatement and CodeConditionStatement but don't know how to execute it.

Aucun commentaire:

Enregistrer un commentaire