2. Write a program to input first 10 odd numbers using loop statement and print numbers in
descending order.
Answers
Answered by
0
Answer:
#include<stdio.h> int main() { int n, i, a; printf("Enter a number:"); scanf("%d", &n); printf("List in descending order:"); for (i = n - 1; i >= 0; i--) { a = 1 + i * 2;
Similar questions
English,
2 months ago
Computer Science,
2 months ago
Physics,
4 months ago
Economy,
4 months ago
Physics,
10 months ago