Write A Program for printing Mathematical Table

# include <stdio.h> #include<conio.h> main( ) { int i, n, k = l; printf (“enter n value”); scanf (“%d”, &n); ...

# include <stdio.h>
#include<conio.h>
main( )
{
int i, n, k = l;
printf (“enter n value”);
scanf (“%d”, &n);
for (i = 1; i< 20; i ++)
{
k = i * n ;
printf (“\n % d* %d = %d”, i, n, k);
}
getch();
}

Out Put:

Each n value 2

1*2=2
2*2=4
3*2=6
.
.
.

20*2=40

Related

C Programs 4142563386848241898

Post a Comment

emo-but-icon

item