write a program to print reverse of the table for a number n.

 //program to print reverse of the table for a number n.

#include<stdio.h>


int main()

{

int n;


printf("enter any number=");


scanf("%d", &n);


for(int i=10; i>=1; i--){

printf("%d\n", n*i);

}


return 0;

}


output:


enter any number=2

20

18

16

14

12

10

8

6

4

2


--------------------------------

Process exited after 7.439 seconds with return value 0

Press any key to continue . .

Comments

Popular posts from this blog

Write a program to check if a number is prime or not.

Write a program to print the grades to a student.

write a program (keep taking numbers as input from user until user enters an Odd number)