multiplication using increment operator (with out arthematic operator)
Re: multiplication using increment operator (with out arthematic operator)
To get the result of 3 x 5, you could do:
Code:
int result = 0;
for (int i=1; i<=3; i++)
result = result + 5;
Is that what you want?
Re: multiplication using increment operator (with out arthematic operator)
no . i want with out arthamatic operators
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.
Re: multiplication using increment operator (with out arthematic operator)
Quote:
Originally Posted by
mallikanala
pls any one giv ans
Please go through this web page.
db
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