This is a beginner level program. program is to find the sum of first and last digit of the number. here is the link https://www.codechef.com/problems/FLOW004
my code:
#include<iostream>
using namespace std;
int main(){
int N;
int T;
cin>>T;
for(int i=0;i<T;i++){
cin>>N;
int a = N%10;
while(N>10){
N = N/10;
}
cout<<a+N<<"\n";
}
}