Find the odd numbers between 0 to 50 cpp program
Answers
Answer:
#include<iostream.h>
#include<conio.h>
/*************************************************************************//*************************************************************************///----------------------------- Main( ) -------------------------------///*************************************************************************//*************************************************************************/
main()
{
clrscr();
cout<<"\n The odd numbers form 0 to 50 are as follows :"<<endl;
for(int count=0;count<=50;count++)
{
if(count%2==1)
cout<<" "<<count;
}
getch();
return 0;
}
Share: 37 8 22.4K
Previous Post:
Program that prints the first 10 integers(using for loop)
Next Post:
Program that reads a number ,coumputes and displays its factorial ( using for loop )
Didn't find what you were looking for? Find more on Program that prints odd numbers form 0 to 50 (Using for Loop) Or get search suggestion and latest updates.
Easy Tutor
Easy Tutor author of Program that prints odd numbers form 0 to 50 (Using for Loop) is from United States. Easy Tutor says
Hello Friends,
I am Free Lance Tutor, who helped student in completing their homework.
I have 4 Years of hands on experience on helping student in completing their homework. I also guide them in doing their final year projects.
I have share many programs on this website for everyone to use freely, if you need further assistance, than please contact me on easytutor.2ya [at the rate] gmail [dot] com
I have special discount scheme for providing tutor services. I am providing tutor service to students from various contries, currently most of my students are from United States, India, Australia, Pakistan, Germany, UK and Canada.
I am also here to expand my technical network to receive more opportunity in my career, make friends to help them in resolving their technical problem, learn and share my knowledge, If you like to be my friend, Please send me friend request.
Thanks,
Happy Programming :)
View All Articles
Related Articles and Code:
Program that prints odd numbers, even numbers and the numbers that are divisible by 5 b/w 0 to 50
Program that prints all the even numbers b/w 0 to 50 ( using while, do-while and for loop )
Program that reads a number and prints even if the number is even and prints odd if the number is odd.
Program to print number N times using for loop
To find the Prime Numbers between 1 to 50
Shell script to print first 5 odd numbers
Program to find even or odd number using switch case
Program to print 'Power of 2' table using for loop
Program to print multiplication tables using do while loop
Program that prints the first 10 integers(using for loop)
Program that prints first 20 integers (using while loop)
Program that prints first 20 integers in reverse order (using while loop )
Program that reads a number ,coumputes and displays its factorial using do-while loop
Program that reads a number ,coumputes and displays its factorial ( using for loop )
Program to calculate average of numbers given by user using while loop
Program to display numbers using for loop
Program to display numbers using do while loop
Printing of the alphabet set in decimal and character form
Decision Making and Looping using while statement , do while loop , for statement
Program that reads marks obtained by a student in a test of 100 marks and print pass if marks are greater than or equal to 50
Other Interesting Articles in C++ Programming:
Program to find the value of sin at any given angle
Program to perform sorting of linklist
Program for electricity board charges calculation
Defines and lists types of expressions
Program of LL parser1
Program to perform heap sort
Program to illustrate the Bubble Sorting of arrays
Program to draw a 3D Piece-Wise Bezier Curve of nth degree with Zeroth Order Continuity
Represent a polynomial in terms of a singly linked list and then add two three variables polynomials
Program of Minimum Spaning Tree ( MST )
Program to create and display link list
The program illustrates the use of functions
Program to illustrate array of objects iv
Explanation:
Answer:
1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49 are the odd numbers between 0 - 50 .
hopes that it helps u