Quick actions

cmd+k|ctrl+k

Navigation

Languages

 №140

Snippet info

Language

Cpp

Visibility

public

Author

bikhnevichk

Created

2018-10-24T07:58:24Z

Updated

2018-10-24T07:58:24Z

#include <iostream>
#include <math.h>
using namespace std;

int main() {
     int i, n;
     cin >> n;
     n == 15;
    for (i = 10; i <= 99;i++)
    if (pow(i % 10, 2) + pow(i / 10, 2) == n) cout << "chislo = " << i << endl;
       system("pause >> null");
    return 0;
}
INFO