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
Post a Comment
Please do not enter any spam link in the comment box.