Computer Science, asked by fahad99, 1 year ago

a program to display perfect integers from 1 to 1000.

Answers

Answered by gideonsam2000
0

#include<iostream.h>

void main()

{

float no.,perft;

cout<<"enter the no.";

cin>>no.;

if(no.=<0)

perft=no.

cout<<"the perfect no. is"<<perft;

else;

cout<<"you entered an imperfect integer";

}



Similar questions