f = float(input()) print(“%d” % f)
#include<string> using namespace std; int main() { string s; cin>>s; for(int i=0;i<s.find('.');++i){ cout<<s[i]; } }
用C语言的自动转换
int main() { int a; scanf(“%d”,&a); printf(“%d”,a); return 0; }
Python
f = float(input())
print(“%d” % f)
include
用C语言的自动转换
include
include
int main()
{
int a;
scanf(“%d”,&a);
printf(“%d”,a);
return 0;
}