Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

/******************************************************************************

Welcome to GDB Online.


GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP,
Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS,
JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
#include <stdio.h>

int fsn(int n)
{
int c=0,i;
for( i=n+1;i<(10*n);i++)
{
c=0;
for(int j=1;j<=i;j++)
{
if(i%j==0)
c++;

}
if(c==n)
{
return i;

int main()
{

int n;
printf("enter the number\n");
scanf("%d",&n);
//fsn(n);
printf("output= %d",fsn(n));

return 0;
}

You might also like