Search:

Type: Posts; User: Bhargav; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    19,678

    @john the above post is for the sum of all the...

    @john
    the above post is for the sum of all the consecutive numbers...
    plss be clear..
    do u want the sum of each 2 consecutive numbers or 3 consecutive numbers or...so.on..

    thanks
    Bhargav
  2. Replies
    8
    Views
    19,678

    its quite simple... public class Numbers { ...

    its quite simple...
    public class Numbers
    {
    public static void main(String args[])
    {
    int x = Integer.parseInt(args[0]);
    int y = Integer.parseInt(args[1]);
    int...
Results 1 to 2 of 2