1 solutions
-
0
C++ :
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n > 1 & n < 100){ cout<<"yes"<<endl; } return 0; }
Java :
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if(a>1 && a<100){ System.out.println("yes"); }else{ System.out.println(); } sc.close(); } }
Python :
a=int(input()) if a>=1 and a<=100: print("yes")
- 1
Information
- ID
- 10201
- Time
- 1000ms
- Memory
- 16MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By