1 solutions
-
0
C :
#include<stdio.h> int main() { int a; scanf("%d",&a); if(a%5==0&&a%3==0){ printf("yes"); }else{ printf("no"); } return 0; }C++ :
#include <iostream> #include <cstdio> using namespace std; int main() { int n; cin>>n; if((n%3 == 0) && (n%5 == 0) ) { cout<<"yes"<<endl; } else { cout<<"no"<<endl; } return 0; }Python :
# coding=utf-8 a=int(input()) if a%3==0 and a%5==0: print('yes') else: print('no')
- 1
Information
- ID
- 16486
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By