Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO

Answers were Sorted based on User's Feedback

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO..

#include<stdio.h>
#include<conio.h>
void main();
int a;
clrscr();
float rem=0,rev=0;
while(rev>=0)
{
rem=a%10;
rev=rev+rem;
a=a/10;
}
printf(Reverse of two digit no is:=%d",rev);
getch();
}

 Is This Answer Correct ? 21 Yes 10 No

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO..

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a;
float rem=0,rev=0;
while(rev>=0)
{
rem=a%10;
rev=rev*10+rem;
a=a/10;
}
printf(Reverse of two digit no is:=%d",rev);
getch();
}

 Is This Answer Correct ? 13 Yes 4 No

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO..

#include<stdio.h>
#include<conio.h>
main()
{
int a, b,c,d;
printf("Enter a value:");
scanf("%d", &a);
if (a%10==0)
{b=a/10;
printf("Reverse value is:%0d", b);}
else
{c=a%10;
d=(a/10)+(c*10);
printf("Reverse value is:%d", d);}
getch();
}

 Is This Answer Correct ? 9 Yes 1 No

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO..

#include<stdio.h>
#include<conio.h>
void main();
int a;
clrscr();
float rem=0,rev=0;
while(rev>=0)
{
rem=a%10;
rev=rev+rem;
a=a/10;
}
printf(Reverse of two digit no is:=%d",rev);
getch();
}

 Is This Answer Correct ? 3 Yes 1 No

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO..

#include<stdio.h>
#include<conio.h>
void main()
{
int n,a,b=0,c;
printf("\nEnter any number : ");
scanf("%d",&n);
c=n;
while(n!=0)
{
a = n%10;
b = (b*10)+a;
n = n/10;
}
if(b==c)
printf("\nPalindrome no");
else
printf("\nNot a palindrome no");
printf("\nReverse of the number is %d",b);
getch();
}

 Is This Answer Correct ? 2 Yes 1 No

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO..

#include <stdio.h>
#include<conio.h>
void main()
{
int n,t;
printf("\n enter the 2 digit no.");
scanf("%d",&n);
while(n%10>0)
{
t=n%10;
n=n/10;
printf("\n reverse no. is%d",t);
}
getch();
}

 Is This Answer Correct ? 0 Yes 3 No

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO..

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("\nEnter Two no. ");
scanf("%d%d",&a,&b);
printf("\nBefore Reverse %d%d",a,b);
printf("\nAfter Reverse %d%d",b,a);
getch();
}

 Is This Answer Correct ? 2 Yes 10 No

More C Interview Questions

What are extern variables in c?

Find MAXIMUM of three distinct integers using a single C statement

I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.

write a program to delete an item from a particular location of an linear array?

int x=sizeof(!5.856); What will value of variable x?

Why ca not I do something like this?

a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none

write a programe to find the factorial of given number using recursion

Do you know what are bitwise shift operators in c programming?

how 2 compile & execute c program with out using editor?

1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.

Why do we use null pointer?

Categories