This is a paragraph
#include<cstdio> #include<iostream> #include<cstring> using namespace std; int main() { while(1) { char s[100]; cin>>s; if(s[0]!='-') cout<<s<<endl; else { int c,d; int len=strlen(s); if(len==3&&s[2]=='0') { cout<<0<<endl; } else { c=s[len-1]-48; d=s[len-2]-48; s[len-2]='\0'; printf("%s",s); if(c>d) printf("%d\n",d); else printf("%d\n",c); } } } return 0; }
0 comments:
একটি মন্তব্য পোস্ট করুন