program to reverse the order of digits in a given number of
any length.
main()
{
long int a;
int num[];
clrscr();
printf("enter a number");
scanf("%ld",&a);
while(a!=0)
{
d=a%10;
static int i=0;/* here we declare variable as static life
time is thru out the prgm*/
num[i]=d;/* store end of digits in array
i++;
a=a/10;
}
printf("reverse of d num is");
for(int x=0;x<i;x++)
printf("%d",num[x]);
}
| Is This Answer Correct ? | 10 Yes | 6 No |
c# code to Count number of 1's in a given range of integer (0 to n)
how to get the table names via c sharp and column names also?
Write a program to count the number of characters, number of words, number of line in file.
Can you declare an array of mixed Types?
write a Program to copy the string using switch case.
Coding for using Nullable Types in C#?
Code for Reading and writing from a file in c#?
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)
Write a program to convert postfix expression to infix expression.
How to Link Different Data Sources Together?
How to Create Files by Using the FileInfo Class?
How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?