I get a compile error, on the quotation marks surrounding the %d\n,
says they are non ascii characters, so I replaced by double quote marks,
and it compiled and ran.
//printing
for(int i=0;i<10;i++)
printf("%d ",rollNo);
return 0;
}
the program, is not runing.
It should take 10 integers from the user and then print them again.
It should be like this
#include <stdio.h>
int multiplication(int a,int b)
{
int c;
c=a*b;
return c;
}
void main(void)
{
int r;
r = multiplication(2,8);
printf("%d",r);
}
Please note that your “%d” looks different than mine. The online C compiler found this error when I copy pasted your code.
It should be like this
#include <stdio.h>
int multiplication(int a,int b)
{
int c;
c=a*b;
return c;
}
void main(void)
{
int r;
r = multiplication(2,8);
printf("%d",r);
}
Please note that your “%d” looks different than mine. The online C compiler found this error when I copy pasted your code.