Write a program to print first and last digit of an inputted number
Answers
Answered by
4
C Program to Find First and Last Digit of a Number
- #include < stdio.h >
- #include < math.h >
- int main()
- {
- int num, first, last, count;
- printf("Enter an integer number\n");
- scanf("%d", &num);
- count = log10(num);
Similar questions
Math,
4 months ago
Math,
4 months ago
Social Sciences,
4 months ago
Math,
8 months ago
Computer Science,
1 year ago
Physics,
1 year ago
English,
1 year ago