#include <iostream> using namespace std; int main() { int st1; cin>>st1; if (spr > 9 then){ cout<<spr % 10; }else{ cout<<spr -spr % 10; } return 0; }
22
prog.cpp: In function ‘int main()’:
prog.cpp:9:6: error: ‘spr’ was not declared in this scope
if (spr > 9 then){
^
prog.cpp:9:14: error: expected ‘)’ before ‘then’
if (spr > 9 then){
^
Standard output is empty