1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
gregori [183]
3 years ago
10

Write a function that takes an integer value and returns the number with its digits reversed. for example, given the number 7631

, the function should return 1367. must use a loop.
Computers and Technology
1 answer:
lesantik [10]3 years ago
3 0

//=indicating you to do the programming part on your own relating to the description provided against. This done because different programming languages require different coding for that.

n=integer value

n1=dummy storage for n

r=variable used to do the function

{

int n,r,n1,rev=0;

//do the coding here for storing the integer in the variable n

n1=n;

while(n>0){

   r=n%10;

   rev=(rev*10)+r;

   n=n/10;

   }

//now add a command for displaying the value of rev

}

this is just a logic i used for java

done.

You might be interested in
Electronic files created on a computer using programs such as word software are considered to be
nika2105 [10]

From the Page Layout tab, click Margins. Select Custom Margins... from the drop-down menu. Selecting Custom Margins...

The Page Setup dialog box will appear.

Adjust the values for each margin, then click OK. The Page Setup dialog box.

The margins of the document will be changed

6 0
4 years ago
A user reports that he can't connect to a specific website. you go to the user's computer and reproduce the problem. what should
Inessa05 [86]
I would check that DNS is working, and then check that the returned address accepts connections properly.
3 0
3 years ago
Define file organization
galben [10]

To organize all files in the appropriate folders for easy and quick access

4 0
2 years ago
Read 2 more answers
How many voltage values can be represented with a 10-bit binary code?
viktelen [127]
Answer is D. 1024
8 bits is enough to represent 256 different numbers. 9 bits is enough to represent 512 numbers. 10 bits can represent 1024 numbers.
8 0
3 years ago
Wap to calculate area and circumference of a circle​
Rainbow [258]

Answer:

To calculate the area of circle πr^2 formula.

And,to calculate the circumference we can use 2πr formula.

5 0
3 years ago
Other questions:
  • Xavier loves to sing and hum, and he always has music softly playing while he studies. The learning style that best fits Xavier
    6·2 answers
  • Software designed specifically for managing real estate is an example of ________ software. Select one: A. e-commerce B. vertica
    7·1 answer
  • Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching exper
    7·1 answer
  • Why do computers use zeros and ones? a. because combinations of zeros and ones can represent any numbers and characters b. becau
    6·1 answer
  • Refer to the exhibit. If a hacker on the outside network sends an IP packet with source address 172.30.1.50, destination address
    11·1 answer
  • Convert 4.5 strides to girth
    10·1 answer
  • Codehs dartboard 3.12.4
    9·1 answer
  • someone please do this for and send a screeshot or picture please its really important for my examsss :D​
    9·1 answer
  • MOA115 Medical Records and Insurance
    6·1 answer
  • A _____ model is one that is automatically adjusted based on changing relationships among variables.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!