• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

add two numbers without using the plus operator

 
lucky lsharma
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

can we write a program to add two numbers without using the plus operator.


regards
 
Ishu Saxena
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Test Code :


[ August 20, 2008: Message edited by: Ishu Saxena ]
 
lucky lsharma
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ishu ,

thanks for your kind reply , but its was not like that .(its worlds simplest answer). i need it in programming manner .

lots of thanks for your try .


regards
 
Ishu Saxena
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, Here is another one ,




[ August 21, 2008: Message edited by: Ishu Saxena ]
 
lucky lsharma
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey ,

its will be great

so sending you some more question for you Ishu

1 program to generate the number in English. e.g. if input is 1,it should output one and so on till what ever may be upper limit say 1000.

2 program to swap two nibbles in a byte.

3 a program to convert from decimal to any base
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"lucky lucky",

apparently you missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15441
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by lucky lucky:
so sending you some more question for you Ishu
...

"Lucky", JavaRanch is not a place where you can have other people do your homework. Please do your own homework, otherwise you will not learn anything.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic