0
#include <stdio.h>
int main()
{
    int n,i;
    printf("Enter a number: ");
    scanf("%d",&n); 
    for (i=0; i<=n; ++i)
    {
        if (i%(7*13*19)==0)
        {
            printf("%d\n",i);
        }
    }
    
return 0;
}
1

In the for loop use, (i = n, i >= 0, i--). This will start from n and go to zero so the output is in descending order.

Hope this helps. If it does, please check the tickmark.

1
  • Thank youuu😍😍 – Khulit Jan 17 at 5:15

Not the answer you're looking for? Browse other questions tagged .