answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void main()

{

int i;

for(i=1;i<=50;i+=2)

{

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

}

getch();

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

wap that displays even numbers from 2 to 50 .

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: A c program to generate even numbers up to 50?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Shell program to generate the prime numbers betwee 1 to 50?

2,3,5,7,9,11,13,17,19,23,29,31,37,39,41,43,47,49


C program to generate numbers from 1 to 100 divisible by 2?

(rand()&amp;50+1)*2


Q2 Write a program to print even numbers between 10 and 50?

You can use int i; for (i = 10; i &lt;= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.


How do you write C program to print a Series of Odd Numbers and Even Numbers.?

Generate a random number in half the range you are interested in. If generating odd values, subtract 1 from the upper bound of the range. That is, if the range is 0 to 100, then generate a random number in the range 0 to 50 for even numbers and 0 to 49 for odd numbers. Double the generated number to obtain the even value, or double it and add 1 to obtain the odd value.


Write a program to generate the first 50 perfect numbers?

I don't believe that 50 perfect numbers have ever been found, last time I checked there were only about 47 known perfect numbers. It would also require an extremely powerful computer.


What percent of these numbers are even numbers from 1-50?

Even numbers account for 50% of the numbers from 1 to 50.


Shell program to generate prime number between 1 and 50?

There are several shell programs available for download on the Internet that will generate prime numbers. The best way to find a prime number is through calculation, however.


Simple java program to find even numbers?

Here is a simple program that will list all the even numbers between 1 and 50: public class EvenNumbers { public static void main(String[] args) { for(int i=1; i&lt;=50; i++) { if(i%2 ==0) { System.out.println(i); } } } }


What is the ratio of odd numbers to even numbers?

The ratio of odd numbers to even numbers is 1 : 1 or 50-50.


Sum of first 50 even numbers?

The sum of the first 50 even numbers is 2,550.


What are the even composite numbers from 50 to80?

All even numbers between 50 and 80 are composite.


What are the even numbers of 150?

The even numbers of 150 are: 2,6,10,30,and 50