what is the output:
#include <stdio.h>
int drive();
int main()
{
int a,b;
printf("Enter your Num");
scanf("%d", &a);
b=drive(a);
printf("%d\n", b);
return 0;
}
int drive(int p)
{
int q,r,s,t,count=0;
for (q=1;q<p;q++){
if (p%q == 0){
r=q; // if p=35 dn r=1,3,5,7//
for (s=2;s<r/2;s++){
if (r%s == 0){
count++;
}
}
if (count == 0 && r!=1)
t=r;
}
}
return t;
}
1
Expert's answer
2014-02-19T11:07:14-0500
Please upload your code to ge.tt or any other online fileshare websites and provide us with the link.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment