Home
Mega Menu
FYBCS
_C
_HTML & CSS
SYBCS
_DS
_SCILAB
TYBCS
_JAVA
_PHP
Download Apk
Home
c
C Program - Write a program to accept an integer and reverse the number
C Program - Write a program to accept an integer and reverse the number
prozone
June 07, 2018
Program
#include<stdio.h>
int main()
{
int a,j=0,p;
printf("enter the no : ");
scanf("%d",&a);
printf("reverse= ");
while(a!=0)
{
p=a%10;
a=a/10;
j++;
printf("%d",p);
}
}
Output:
enter the no : 568
reverse= 865
Post a Comment
0 Comments
Popular Posts
C Program - Write a program to add and multiply two matrices. Write separate functions to accept, display, add and multiply the matrices. Perform necessary checks before adding and multiplying the matrices
June 15, 2018
C program - Write a menu driven program to perform the following operations till the user selects Exit. Accept appropriate data for each option. Use standard library functions from math.h
June 10, 2018
C Program - Accept the x and y coordinates of two point and compute the distance between the two points
June 01, 2018
Follow Us
Tags
Powered by Blogger
0 Comments