Professional Documents
Culture Documents
PREPARED BY:-
SHAHBAZ ZEB(18CS2996).
DATE OF PROJRCT:-22/03/2019
DATE OF SUMISSION:-05/04/2019
SUBMITTED TO:-
GURJEETPAL SIR
Question:-
Create a mini project that will:
CONCEPT USED:-
Functions,variables,loops,arithmetic functions,breaks.
Solution:
#include<iostream>
#include<stdio.h>
class number
long int n;
int i,c = 0;
public:
void input()
cin>>n;
void prime()
if (n==0)
{
else
if (n%i == 0)
c++;
if (c>1)
divisor();
else
void divisor()
int a;
if(n%a==0)
cout<<a<<endl;
};
int main()
number n1;
n1.input();
n1.prime();
return 0;
}
OUTPUT:-
***THANK YOU***