View Single Post
  #10 (permalink)  
Old 06-25-2008, 06:48 AM
Eranga's Avatar
Eranga Eranga is online now
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,395
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
There is no algorithm there, just a simple logic. The logic is what you have done in your code. It should know yourself.

Code:
Check the number of command line parameters. If 2 command line parameters not found, notify it to the user, Else display command line parameters. Convert parameters to integer values and add one to each. Set the array size equal to calculated values. If any parameter is zero, display the value zero. Else, for each array element add values of multiplication of each index. Exit.
This is the very simple logic in the code.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote