ProAnswers.org

c-language function problem

How to display a table of a given number using function(with out return type and without arguements) in c language.

#include

int table,count=1;

int main()

{

    printf("Enter a number");

    scanf("%d",&table);

   for(count;count<20;count++)

   {

           fun();

   }

return 0;

}

fun()

{

    printf("%d*%d=%d

",table,count,table*count);

}