mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
CRLF -> LF
This commit is contained in:
parent
d7ac67dbf8
commit
aa75ddccbb
42 changed files with 41762 additions and 41762 deletions
|
|
@ -1,38 +1,38 @@
|
|||
/*
|
||||
* C# Program to Display All the Prime Numbers Between 1 to 100
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace VS
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
bool isPrime = true;
|
||||
Console.WriteLine("Prime Numbers : ");
|
||||
for (int i = 2; i <= 100; i++)
|
||||
{
|
||||
for (int j = 2; j <= 100; j++)
|
||||
{
|
||||
if (i != j && i % j == 0)
|
||||
{
|
||||
isPrime = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (isPrime)
|
||||
{
|
||||
Console.Write("\t" +i);
|
||||
}
|
||||
isPrime = true;
|
||||
}
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
* C# Program to Display All the Prime Numbers Between 1 to 100
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace VS
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
bool isPrime = true;
|
||||
Console.WriteLine("Prime Numbers : ");
|
||||
for (int i = 2; i <= 100; i++)
|
||||
{
|
||||
for (int j = 2; j <= 100; j++)
|
||||
{
|
||||
if (i != j && i % j == 0)
|
||||
{
|
||||
isPrime = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (isPrime)
|
||||
{
|
||||
Console.Write("\t" +i);
|
||||
}
|
||||
isPrime = true;
|
||||
}
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue