HomelearnersbestplatformWrite a program to print odd number and get range from user in C-Language. Write a program to print odd number and get range from user in C-Language. 0 Hasnain Altaf May 07, 2022 Top Post Responsive Ads code (Google Ads) Write a program to print odd number and get range from user in C-Language.#include <conio.h>#include <stdio.h>int main() { int a,i,count=0; printf("Enter number for printing odd number till\n"); scanf("%d",&a); printf("You enter %d \n",a); for(i=1;i<=a;i=i+2){ printf("%d \n",i); if (a%2==1){ count=count+1; } else if(a%2==0) { a=a-1; if(a%2==1) { count=count+1; } } } printf("\nNumbers of odd numbers is %d. ",count ); return 0;} Below Post Responsive Ads code (Google Ads) Tags C-language for-loop learners best platform learnersbestplatform Newer Write a program to print descending number pattern in C-language using for-loop Older Write a function in C for adding two numbers by taking argument