eolymp
bolt
Try our new interface for solving problems
Problems

Integer

published at 1/23/24, 6:39:37 pm

include <bits/stdc++.h>

using namespace std;

int main() { string s; cin>>s; int n=0;
for(int i=1;i<=s.size();i++){ if(s[i] == '.' && s[i+1] == '0'){ n = 1; break; } } if(n == 0) cout<<"No"<<endl; else cout<<"Ok"<<endl; }

published at 3/6/24, 7:48:42 pm

include<iostream>

using namespace std; int main() { double a; cin>>a; int b=a; if(a-b!=0) { cout<<"No"; } else { cout<<"Ok"; } }