Professional Web Applications Themes

c# coding - ASP.NET Security

(Type your message here) -------------------------------- From: lovey dovey I need help in writing a program that takes any integer and calculates its factorial. Also i need to ensure proper error checking that the variable that is storing the variable does not overflow with my result. Assuming that i am storing my results in a long, what is the maximum input value that my program should accept? I am new to C#.Can anyone help me with the solution. Thanx a ton. Bye. ----------------------- Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url]) <Id>x0poY95lBkyQnr11eSyjBg==</Id>...

  1. #1

    Default c# coding

    (Type your message here)

    --------------------------------
    From: lovey dovey

    I need help in writing a program that takes any integer and calculates its factorial. Also i need to ensure proper
    error checking that the variable that is storing the variable does not overflow with my result. Assuming that i am storing my results in a long, what is the maximum input value that my program should accept?
    I am new to C#.Can anyone help me with the solution.
    Thanx a ton.
    Bye.

    -----------------------
    Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])

    <Id>x0poY95lBkyQnr11eSyjBg==</Id>
    lovey dovey via .NET 247 Guest

  2. #2

    Default Re: c# coding

    Hey, lovey dovey

    Either you stick to L-D paradigm of yours, either you have to take the books
    your teaches assigned you to and start learning.
    Of course you can plan to fake you're programmer after finishing your course
    using newsgroups - however in the long run it will be short run

    HTH
    Alex

    "lovey dovey via .NET 247" <anonymousdotnet247.com> wrote in message
    news:%23AID5XXMEHA.1556TK2MSFTNGP10.phx.gbl...
    > (Type your message here)
    >
    > --------------------------------
    > From: lovey dovey
    >
    > I need help in writing a program that takes any integer and calculates its
    factorial. Also i need to ensure proper
    > error checking that the variable that is storing the variable does not
    overflow with my result. Assuming that i am storing my results in a long,
    what is the maximum input value that my program should accept?
    > I am new to C#.Can anyone help me with the solution.
    > Thanx a ton.
    > Bye.
    >
    > -----------------------
    > Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
    >
    > <Id>x0poY95lBkyQnr11eSyjBg==</Id>

    AlexS Guest

Similar Threads

  1. php coding
    By Unregistered in forum Brainstorming Area
    Replies: 0
    Last Post: April 18th, 12:07 PM
  2. help in coding
    By fsurrey in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 1
    Last Post: September 5th, 08:03 AM
  3. ASP Coding
    By Culbert in forum ASP Database
    Replies: 5
    Last Post: August 4th, 07:13 AM
  4. coding
    By Tim A. Setliff in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: January 24th, 02:52 PM
  5. Lil fun be4 coding
    By Julien CROUZET aka c2c in forum PHP Development
    Replies: 0
    Last Post: September 2nd, 02:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139