Computer Science, asked by deekshitha44, 10 months ago

write a c-program to print first 20 multiplication tableseach table upto 20 except 5,8,tables using continue​

Answers

Answered by Girdharik
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
Girdharik: ?????
deekshitha44: I ask by using continue
Girdharik: work
Girdharik: will be long!
Answered by sswaraj04
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

**********************************************************************


deekshitha44: tq
sswaraj04: np
Similar questions