write a c-program to print first 20 multiplication tableseach table upto 20 except 5,8,tables using continue
Answers
Answered by
1
#include <stdio.h>
int main()
{
int n, i;
printf("Enter an integer: ");
scanf("%d",&n);
for(i=1; i<=10; ++i)
{
printf("%d * %d = %d \n", n, i, n*i);
}
return 0;
}
hope it may help u
deekshitha44:
sry.....no
Answered by
1
Answer:
#include <stdio.h>
int main()
{
int n, i;
for(n=1;n<=20;n++)
{
if(n==5||n==8)
continue;
for(i=1; i<=10; ++i)
{
printf("%d * %d = %d \n", n, i, n*i);
}
}
return 0;
}
Explanation:
just edited the former program with continue statement
**********************************************************************
Similar questions