الصفحة الرئيسيةc examples C Program to Print First and Last Digit of Number byAjay Kadtan •أغسطس 12, 2019 0 program:#include<stdio.h> int main() { int no,b,f; printf("Enter any number\n"); scanf("%d",&no); f=no%10; do { b=no%10; no=no/10; } while(no!=0); printf("First digit=%d and last digit=%d",b,f); } output: Tags: c examples Facebook Twitter