hello friends....
TAKE THE FIRST STEP TO KNOWLEDGE FRIENDS BECAUSE KNOWLEDGE IS FREE.
/* WRITE A PROGRAM TO DISPLAY MULTIPLICATION TABLE */
#include<stdio.h>
#include<conio.h>
void main()
{
int n, i=1, ans1 =0;
clrscr();
printf("enter any number : \n");
scanf("%d",&n);
while(i<=10){
ans1 = n*i;
printf("%d * %d = %d\n",n,i,ans1);
i++;
}
#include<conio.h>
void main()
{
int n, i=1, ans1 =0;
clrscr();
printf("enter any number : \n");
scanf("%d",&n);
while(i<=10){
ans1 = n*i;
printf("%d * %d = %d\n",n,i,ans1);
i++;
}
getch();
}
====================
enter any number :
6
6 * 1 = 6
6 * 2 = 12
6 * 3 = 18
6 * 4 = 24
6 * 5 = 30
6 * 6 = 36
6 * 7 = 42
6 * 8 = 48
6 * 9 = 54
6 * 10 = 60
* * * * * * * * * * * * * *http://www.dnpdeveloper.com
if you have like this blog so share and subscribe, comment for this blog.
if your any question, so comment pleass.
MY INSTAGRAM ID : dnp176
Comments
Post a Comment