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