Search: | |||||

| ||||

Home » Forum » Assembly Language | RSS Feeds |

Write a program to display the odd number between 50 to 1

/*Sorry it is a C lnguage code*/

/*It works in only ubuntu

you have to insert conio.h and getch()*/

#include<stdio.h>

void main()

{

int i;

printf("Odd numbers are :\n");

for(i=50;i>0;i--)

{

if(i%2!=0) //if (number%2) then it is odd number.

printf("%d\t",i);

}

}

Didn't find what you were looking for?
Find more on odd number
Or get search suggestion and latest updates.

Related Topics:

- Check odd or even
- how to check for odd or even?
- move data from 90 odd sheets.
- Converting a "Stringed" Number to a Number
- Converting a "Stringed" Number to a Number
- Write assembly program that check 20 numbersstored in the data segment if it is odd or even
- prime number
- programming to display series of 24,99,224,399....upto 10 numbers
- Whether the number is the power of two or not.
- Average of numbers ; matrix
- How to take digits as input then print them as a number?
- Write a C program that shall perform sort 10 numbers using insertion sort and stack operation.
- HW HELP! loop, histogram, random number
- perfect number
- Read integer number
- Display character which appears number of time equal half of maximum time
- triangle of numbers,:-( i owe you one
- C program that takes Salesperson details such as Payroll number, Surname, Other Names, Basic Sa
- perfect number
- how to sum the even numbers only
- Addition of two numbers
- how to generate a rondom number btween two ranges
- Is it possible to have limited number of rows and columns in a sheet
- Max number of sheets in workbook?
- Get Column by number