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 create a file called emp.rec and store information about a person, in terms of his name, age and salary.
How to Play Snake Game in Turbo C++
A C program to find factorial of a number using recursion
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