GeekInterview.com
Series: Subject: Topic:
Question: 107 of 995

Adding Two Numbers

How to add two numbers without using arithmetic operators?
Asked by: dnr.simha23 | Member Since Jul-2008 | Asked on: Aug 1st, 2008

View all questions by dnr.simha23

Showing Answers 1 - 1 of 1 Answers
antony75

Answered On : Aug 4th, 2008

View all answers by antony75


int firstnumber = 1
int secondno =2

for(int count =0;count<secondno;count++)
{
       firstnumber++;
System.out.println(firstnumber);
}


  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.