My knowledge to you dude
  • Home
  • My Reviews
  • ONLINE EARNING
  • _Freelancing
  • COMPUTER
  • _C PROGRAM
  • English
  • _ESSAY
  • _LETTER
  • _STORY
  • _INSPIRATION & MOTIVATION
  • _QUOTES
  • BUSINESS
HomeC ProgramA 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 C program to print ODD numbers from 1 to N using for loop, write A C program to print ODD numbers from 1 to N using for loop, my knowledge to you dude, c programming example,









// 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
  • Newer

  • Older

Sanjeev Dhakal

Posted by Sanjeev Dhakal

You may like these posts

Post a Comment

0 Comments

Popular Posts

Labels

  • Business 3
  • C Program 38
  • Computer 45
  • Essay 52
  • Inspiration & Motivation 8
  • Letter 2
  • Online Earning 7
  • Quotes 2
  • Story 6

Ad Space

ultahost_cheap_vps_hosting_300x600

Best Hosting Provider

ultahost_cheap_shared_hosting_336x280

Footer Menu Widget

  • Home
  • About
  • Contact Us
  • Disclaimer
  • Privacy Policy
Created By Blogging | Distributed By Blogger