Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <math.h>
- using namespace std;
- int a, c;
- int main(int argc, const char * argv[]) {
- c = 0;
- cin >> a;
- for(int i = 1; i <= a; i++){
- if(a % i == 0){
- c = c + 1;;
- }
- }
- cout << c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement