All pastes #11788 Raw Edit

Factors and psquare

public cpp v1 · immutable
#11788 ·published 2005-05-15 10:15 UTC
rendered paste body
// this program finds sqrts// Trae Barlow#include <iostream.h>main (){	int x;	int y;	cout << "Enter the number to check ";	cin >> x;	y = x;	for (y * y != x; y > 0; y--){        if (y * y = x;){              cout << y;        }     } cin >> x; return 0;