Home
My Reviews
ONLINE EARNING
_Freelancing
COMPUTER
_C PROGRAM
English
_ESSAY
_LETTER
_STORY
_INSPIRATION & MOTIVATION
_QUOTES
BUSINESS
Home
C Program
A C program to print ODD numbers from 1 to N using for loop.
A C program to print ODD numbers from 1 to N using for loop.
Sanjeev Dhakal
C Program
//A C program to print ODD numbers from 1 to N using for loop.
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n;
printf("Enter the value of N: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if(i%2 != 0)
printf("%d ",i);
}
getch();
}
Output:
/
/ A Program to find odd or even.
/
/ A Program to add two numbers.
/
/ A program to display series from 1 to 50.
/
/ A program to find the person is eligible for voting or not.
/
/A C program to find largest number among 3.
/
/ A C program to perform arithmetic operations using switch case.
//
A program to print the name 10 times.
/
/A C program to print ODD numbers from 1 to N using while loop.
C Program
Computer
Post a Comment
0 Comments
Popular Posts
A C program to print all leap years from 1 to N
Smallest and Largest elements from One Dimensional Array using C program
Limitations of Computer
Labels
Business
3
C Program
38
Computer
45
Essay
52
Inspiration & Motivation
8
Letter
2
Online Earning
7
Quotes
2
Story
6
Ad Space
Best Hosting Provider
0 Comments