Quick actions

cmd+k|ctrl+k

Navigation

Languages

3

Snippet info

Language

Cpp

Visibility

public

Author

maloy-

Created

2018-12-22T09:06:37Z

Updated

2018-12-22T09:06:37Z

#include <iostream>
using namespace std;
int main(){
    int s,s1, t, n,n1;
    for(int i = 10; i<100;i++){
    n =  i / 10; 
    n1 = i-n;
    s = n*n;
    s1 = n1*n;
    t = s+s1;
    if(t%n == 0){
    cout<<i <<endl;
    }
    }
    return 0;
}
INFO