to find out the reverse digit of a given number
Answer Posted / srinath, hyd
#include<stdio.h>
#include<conio.h>
void main()
{
int no, t;
clrscr();
printf("\nenter the no.");
scanf("%d",&no);
while(no!=0)
{
t=no%10;
no=no/10;
printf("%d",t);
}
getch();
}
| Is This Answer Correct ? | 10 Yes | 11 No |
Post New Answer View All Answers
What are the preprocessor categories?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Why is sprintf unsafe?
How to implement a packet in C
What is ## preprocessor operator in c?
Can the curly brackets { } be used to enclose a single line of code?
What are the different types of objects used in c?
what is use of malloc and calloc?
What is a macro?
What are the 4 types of programming language?
What is a structural principle?
Explain how do you list files in a directory?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.