isabellatessa86
21.08.2019 •
Computers and Technology
Write a program that prompts the user to enter a four-digit integer and displays the number in reverse order. here is a sample run:
enter an integer: 5213
3
1
2
5
Solved
Show answers
More tips
- L Leisure and Entertainment Learn How to Knit with Needles: A Simple Guide for Beginners...
- C Computers and Internet Best Antivirus: How to Choose Protection for Your Computer?...
- L Legal consultation What Documents Are Required for a Russian Passport?...
- S Sport How to Choose Tennis Rackets?...
- H Health and Medicine AKDS Vaccination: Ensure Your Child s Safety...
- H Health and Medicine Naskol ko Opasen Ukus Kleshcha i Kak Ego Raspoznat...
- C Computers and Internet How to Delete Your Account on Odnoklassniki...
- H Health and Medicine What to Do When Your Jaw Locks Up?...
- G Goods and services What Are the Most Popular Services?...
Answers on questions: Computers and Technology
- C Computers and Technology Does anyone know how to block someone on My cheating ex keeps texting me and he wont stop...
- C Computers and Technology List and briefly explain two other discovery / inventions that were necessary for the eventual development of the technology needed to create and listen to cds...
- B Biology Which mineral scratches dolomite and is scratched by olivine? 1.galena 2.quartz 3.potassium feldspar 4.muscovite mica 10...
- P Physics 20 points! 17. the frequency of a sound wave determines of the sound18. the medium through which sound waves travel affects of the sound19. which person will experience what happens...
- B Biology Foxes in the arctic primarily eat hare. hare eat plants, such as berries, leaves, and grass. if the plants in an arctic area decrease in number, what will most likely happen to...
- H History Germany and japan signed the anti-comintern pact. what does anti-comintern mean?...
- E English Which theme do these lines support?...
- B Biology Why is cell division a misleading name for the process?...
- G Geography What is the definition of the atmosphere?...
- H History Afactor hindering the german invasion of russia was...
Ответ:
Following are the code that is written in c language
#include <stdio.h>
int main() // main function
{
int n1,t; // declaring variable
printf(" Enter an integer :");
scanf("%d",&n1); // taking input
while(n1>0) // iterating over the loop untill the value of n is greater then 0
{
t=n1%10;
printf("%d",t);
printf("\n");
n1=n1/10;
}
return 0;
}
Explanation:
we taking an integer value n1 and iterating over the loop untill n1>0
suppose n1=1234
then t=n%10;
means t=1234%10
as % holds reminder means t=4
then print the value of t means print 4
and n1 becomes 123 which is > 0 again condition is checking and same process is follow untill n1>0
output
Enter an integer: 5213
3
1
2
5
Ответ:
True
Explanation:
Both HLOOKUP and VLOOKUP are excel functions used for searching through tables for a specified lookup value to either get an exact or approximate match. The VLOOK and HLOOKUP functions have identical syntax which only differs with the HLOOKUP requiring the row index number to search through the rows while, VLOOKUP requires the column index number to search through the columns. Other than this difference, the other syntax values are the same.
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])