Table Printing


//Table printing format through FOR loop

#include<stdio.h>
#include<conio.h>
void main()
{
 float i,n,r;
 printf("Enter number for table: ");
 scanf("%f",&n);
 for(i=1.5;i<10.9;i++)
 {
 r=n*i;
 printf("%f * %f = %f\n",n,i,r);
 }
getch();
}

Post a Comment

Previous Post Next Post