Computer Science, asked by Just7beyondthescene, 8 months ago

Write a program to print first and last digit of an inputted number

Answers

Answered by Anonymous
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