write a program to display the table of number entered by the user. You can use-Input, Print For ... Next Commands
Answers
Answered by
8
Answer:
This is just a sample program. Output is based on your values
Explanation:
#include<studio.h>
main()
{
int a[5];
int i=0;
printf ("Enter any 5 values");
for(i=0;i<5;i++)
{
scanf("%d",&a[i]);
}
for (i=0;i<5;i++)
{
printf ("%d\n",a[i]);
}
}
Answered by
0
Answer:
#include<stdio.h>
#include<conio.h>
main()
{
int i,num;
printf("Enter any number");
scanf("%d",&num);
for(i=1;i<=num;i++)
printf("%d*%d=%d",num,i,num*i);
getch();
}
Explanation:
Similar questions