Computer Science, asked by santoshkr101982, 3 months ago

write a basic program to print all multiples of 5 in reverse order from 40 to 5

Answers

Answered by jadayesukrupa
2

Explanation:

Program to print natural numbers in reverse

C program to all natural numbers in reverse from n to 1 using while loop */ #include <stdio.h> int main() { int n; /* * Input a number from user */ printf("Enter value of n: "); scanf("%d", &n); while(n>=1) { printf("%d\n", n); n--; } return 0; }

Output

Enter value of n: 100 100 99 98 97 96 95 94 93 92 91 90 89 88 87


jadayesukrupa: follow
jadayesukrupa: me
jadayesukrupa: bro
Similar questions