//program to print the sum of the first and last digit of a number #include#include int main() { int num,d1,d2,f; clrscr(); cout<<"Enter number: "; cin>>num; d2=num%10; while(num>0) { num=num/10; d1=num; if(d1>0&&d1<=9) { break; } } cout<<"\nSum of first and last digit: "<     Source: geocities.com/cplusplussurvivalkit