delete pics to save space
This commit is contained in:
19
1.1307.cpp
Normal file
19
1.1307.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include<cstdio>
|
||||
int n;
|
||||
int main()
|
||||
{
|
||||
int n,res=0;
|
||||
scanf("%d",&n);
|
||||
if(n<0)
|
||||
{
|
||||
printf("-");
|
||||
n=-n;
|
||||
}
|
||||
while(n>0)
|
||||
{
|
||||
res=res*10+n%10;
|
||||
n/=10;
|
||||
}
|
||||
printf("%d\n",res);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user