Click here to Skip to main content
16,006,709 members
Home / Discussions / C#
   

C#

 
Generalalgorthim Pin
SVb.net8-Jan-08 2:26
SVb.net8-Jan-08 2:26 
GeneralRe: algorthim Pin
Pete O'Hanlon8-Jan-08 3:09
mvePete O'Hanlon8-Jan-08 3:09 
GeneralRe: algorthim Pin
Luc Pattyn8-Jan-08 3:19
sitebuilderLuc Pattyn8-Jan-08 3:19 
GeneralRe: algorthim Pin
benjymous8-Jan-08 4:46
benjymous8-Jan-08 4:46 
GeneralRe: algorthim Pin
SVb.net8-Jan-08 3:49
SVb.net8-Jan-08 3:49 
GeneralRe: algorthim Pin
Pete O'Hanlon8-Jan-08 4:00
mvePete O'Hanlon8-Jan-08 4:00 
GeneralRe: algorthim Pin
J4amieC8-Jan-08 5:15
J4amieC8-Jan-08 5:15 
GeneralRe: algorthim Pin
benjymous8-Jan-08 4:49
benjymous8-Jan-08 4:49 
In that case...

private void PrintNumbers(int number)
{
  if( number == 3 )
  {
    Console.WriteLine("3 2 1 0 1 2 3");
  }
  else if( number == 4 )
  {
    Console.WriteLine("4 3 2 1 0 1 2 3 4");
  }
  else if( number == 18 )
  {
    Console.WriteLine("18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18");
  }
  else
  {
    Console.WriteLine("Invalid argument");
  }
}



--
Help me! I'm turning into a grapefruit!
Buzzwords!


GeneralRe: algorthim Pin
J4amieC8-Jan-08 3:29
J4amieC8-Jan-08 3:29 
GeneralRe: algorthim Pin
Pete O'Hanlon8-Jan-08 4:06
mvePete O'Hanlon8-Jan-08 4:06 
GeneralRe: algorthim Pin
PIEBALDconsult8-Jan-08 10:06
mvePIEBALDconsult8-Jan-08 10:06 
GeneralRe: algorthim Pin
PIEBALDconsult8-Jan-08 10:10
mvePIEBALDconsult8-Jan-08 10:10 
GeneralCalling Stored Procedure for RDLC Report in C# Pin
salman_syed_018-Jan-08 2:19
salman_syed_018-Jan-08 2:19 
GeneralRe: Calling Stored Procedure for RDLC Report in C# Pin
Justin Perez8-Jan-08 3:54
Justin Perez8-Jan-08 3:54 
Generaldatagridview Pin
SVb.net8-Jan-08 2:17
SVb.net8-Jan-08 2:17 
GeneralRe: datagridview Pin
Justin Perez8-Jan-08 4:00
Justin Perez8-Jan-08 4:00 
QuestionHow to handle special International characters in C#. Pin
MinhajuddinK8-Jan-08 1:39
MinhajuddinK8-Jan-08 1:39 
AnswerRe: How to handle special International characters in C#. Pin
Matthew Butler8-Jan-08 4:00
Matthew Butler8-Jan-08 4:00 
GeneralRe: How to handle special International characters in C#. Pin
MinhajuddinK8-Jan-08 5:34
MinhajuddinK8-Jan-08 5:34 
QuestioniTunes SDK (Cover Art) Pin
MicealG8-Jan-08 1:30
MicealG8-Jan-08 1:30 
Generalstruggling with return type of procedure Pin
tasumisra8-Jan-08 0:53
tasumisra8-Jan-08 0:53 
GeneralRe: struggling with return type of procedure Pin
Mircea Puiu8-Jan-08 1:12
Mircea Puiu8-Jan-08 1:12 
GeneralRe: struggling with return type of procedure Pin
tasumisra8-Jan-08 1:17
tasumisra8-Jan-08 1:17 
GeneralRe: struggling with return type of procedure Pin
Mircea Puiu8-Jan-08 1:24
Mircea Puiu8-Jan-08 1:24 
AnswerRe: struggling with return type of procedure Pin
Guffa8-Jan-08 3:38
Guffa8-Jan-08 3:38 

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.