Program For Multiplication Table using function

#include<stdio.h>
#include<conio.h>
void multi(float);
main()
{
float n;
printf("Enter table no: ");
scanf("%f",&n);
multi(n);
getch();
}
 void multi(float n)
 {
 float i,pro;
 pro=1;
 for(i=1;i<=10;i++)
 {
 pro=n*i;
 printf("\n%f * %f = %f",n,i,pro);
 }
 }

Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Security Analyst, Blogger, Web Developer and a Mechanical Engineer. He Enjoys writing articles, Blogging, Debugging Errors and Capture the Flags. Enjoy Learning; There is Nothing Like Absolute Defeat - Try and try until you Succeed.

No comments:

Post a Comment