Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By Fubarable

Thread: multiplication using increment operator (with out arthematic operator)

  1. #1
    mallikanala is offline Member
    Join Date
    Jun 2011
    Posts
    10
    Rep Power
    0

    Post multiplication using increment operator (with out arthematic operator)

    pls any one giv ans

  2. #2
    Join Date
    Jan 2010
    Posts
    19
    Rep Power
    0

    Default Re: multiplication using increment operator (with out arthematic operator)

    To get the result of 3 x 5, you could do:


    Java Code:
    		int result = 0;
    		for (int i=1; i<=3; i++)
    			result = result + 5;
    Is that what you want?

  3. #3
    mallikanala is offline Member
    Join Date
    Jun 2011
    Posts
    10
    Rep Power
    0

    Default Re: multiplication using increment operator (with out arthematic operator)

    no . i want with out arthamatic operators

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: multiplication using increment operator (with out arthematic operator)

    If you're looking for the "dump your homework here so someone else can do it for you site", this isn't it. Please show your work and ask a direct question regarding your work.
    DarrylBurke likes this.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default Re: multiplication using increment operator (with out arthematic operator)

    Quote Originally Posted by mallikanala View Post
    pls any one giv ans
    Please go through this web page.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,386
    Blog Entries
    7
    Rep Power
    20

    Default Re: multiplication using increment operator (with out arthematic operator)

    I think I like this assignment; is the ++ operator allowed and comparison against zero?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Problem With * Operator
    By misant in forum New To Java
    Replies: 26
    Last Post: 01-18-2012, 06:26 AM
  2. The increment operator with parentheses
    By 357mag in forum New To Java
    Replies: 2
    Last Post: 07-03-2011, 07:58 PM
  3. question about the operator ++
    By dardar in forum New To Java
    Replies: 10
    Last Post: 08-16-2010, 02:39 PM
  4. help with not equal to operator !=
    By manowar689 in forum New To Java
    Replies: 9
    Last Post: 06-15-2010, 12:10 AM
  5. Increment Operator Example
    By abimaran in forum New To Java
    Replies: 10
    Last Post: 11-03-2009, 04:45 PM

Posting Permissions

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