What is the output? n=7623 { temp=n/10; result=temp*10+ result; n=n/10 }

Showing Answers 1 - 29 of 29 Answers

jayant dhargawe

  • Sep 29th, 2005
 

 Ans is 762.

  Was this answer useful?  Yes

Devanathan.J

  • Nov 18th, 2005
 

jayant dhargawe Wrote:  Ans is 762.

Let me know the block is come under which programming language.

  Was this answer useful?  Yes

shahistha

  • Dec 5th, 2005
 

Answer is :762

  Was this answer useful?  Yes

Radha Krishna Prasad

  • May 23rd, 2006
 

ans. = 7620+760+70 = 8450.

  Was this answer useful?  Yes

rose

  • Jun 30th, 2006
 

result is not initialised........so the program shows error

hariganesh.b

  • Jul 23rd, 2006
 

the variables are not properly intialised.for the statements the semicolon is missed.so,it will show some errors

incomplete questionspecify the language of the programresult should be initalised to zero.execution of the program is like that....temp = 7623/10 = 762result = 762*10+result = 7620n=n/10;n = 762.

  Was this answer useful?  Yes

sandeep nikam

  • Aug 2nd, 2007
 

output: error statement missing ;

Ajit Narayan Sarangi

  • Aug 30th, 2007
 

NO out put because there is no out put statement (only iff it is a rough program)
if it is a proper coded program then it gives error
if it is a rough coading then if no loop is there then the answer is 762 for result.
if loop is there then answar depends on the loop

  Was this answer useful?  Yes

manishmca1

  • Apr 30th, 2008
 

step 1
 temp = 7623/10 = 762
reusult = 762*10 + result = 7620
n = 7623/10 = 762

step 2

temp =  762/10 = 76
result = 76*10 + 7620 = 760+7620 = 8380
n = 762/10 = 76

step 3
temp = 76/10 = 7
res = 7*10 +8380 = 70+8380 = 8450
n = 76/10 = 7

step 4
temp = 7/10 = 0
res = 0*10 +8450
so Answer is 8450

  Was this answer useful?  Yes

swati

  • Feb 15th, 2017
 

temp=7623/10 (or) 762
result=7620
n=7620/10 (or) 762

  Was this answer useful?  Yes

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions