simple c program for 12345 convert 54321 with out using string
Answer Posted / abhradeep chatterjee
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
printf("enter a number");
scanf("%d",&i);
for(int n=1;n<=5;n++)
{
j=i%10;
i=i/10;
printf("%d",j);
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What is type qualifiers?
What are derived data types in c?
What is indirection?
Which header file is essential for using strcmp function?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Does c have enums?
Write the syntax and purpose of a switch statement in C.
What is nested structure?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Which is the best website to learn c programming?
What is the symbol indicated the c-preprocessor?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
what is the format specifier for printing a pointer value?