Algorithm
Code Examples
#1 Code Example with C++ Programming
Code -
C++ Programming
#include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
int x;
int n;
for(int i = 0; i < t; i++){
cin>>n;
n += 1;
x = n / 10;
cout<<x<<endl;
}
return 0;
}
Copy The Code &
Try With Live Editor
Input
5
1
9
10
34
880055535
1
9
10
34
880055535
Output
0
1
1
3
88005553
1
1
3
88005553
Demonstration
Codeforcess Solution 1553-A A. Digits Sum ,C++, Java, Js and Python,1553-A,Codeforcess Solution