1 solutions
-
0
C :
#include<stdio.h> int main() { int x; scanf("%d",&x); if(x>=60) printf("pass!"); if(x<60) printf("sorry!"); 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>=60){ System.out.println("pass!"); }else{ System.out.println("sorry!"); } sc.close(); } }
Python :
n = int(input()) if n >= 60: print('pass!') else: print('sorry!')
- 1
Information
- ID
- 10233
- Time
- 1000ms
- Memory
- 16MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By