Subdomain Posts
C# | 478 days ago
None | 494 days ago
None | 494 days ago
Lisp | 510 days ago
None | 513 days ago
Python | 515 days ago
Lisp | 515 days ago
Lisp | 515 days ago
None | 548 days ago
None | 582 days ago
Recent Posts
None | 3 sec ago
Diff | 11 sec ago
C++ | 16 sec ago
C++ | 26 sec ago
C | 34 sec ago
Java | 36 sec ago
JavaScript | 40 sec ago
None | 2 min ago
None | 2 min ago
Python | 3 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By xvedejas on the 28th of Nov 2008 08:27:42 PM
Download |
Raw |
Embed |
Report
using System;
using System.Collections.Generic;
namespace duplicates
{
class MainClass
{
public static void Main(string[] args)
{
int max = 10000;
List
<int> numbers
= new List
<int>();
for ( int i = 0; i < max; i++ )
{
bool pass = true;
foreach ( char character in i.ToString() )
{
if ( i.ToString().IndexOf( character ) != i.ToString().LastIndexOf( character ) )
{
pass = false;
}
}
if ( pass ) { numbers.Add( i ); }
}
foreach ( int number in numbers ) { Console.WriteLine( number ); }
}
}
}
Submit a correction or amendment below.
Make A New Post