yes
how to use even and odd number with for loop and if condition plz dont use "int"..
#define int main (void){/*Algorithm*/1. First Initialize the number that is Random no2. Using while loop if the person got it, then the loop stop if not the loop continues.}return(0);
For any number n you could use * (n % 2 == 0), which would be true for an even number, false for odd For an integer i, a simpler method would be * (i & 1), which would be true for an odd number, false for even
int factorial(int n) { int i; int f=1; for(i=2;i<=n;++i) f*=i; return f; }
Exactly what do you mean by 'C program in Java'
#include<stdio.h> int main () { int odd=1; int count=0; while (count++<10) { printf (%d\n", odd); odd+=2; } return 0; }
Wr
yes
To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.
Not used
unsigned count = 0;unsigned num=1; do { std::cout << num << std::endl; num +=2; } while (++count<50);
loop: mvi c,59 dcr c mov a,c daa movc,a jnz loop end
then your program will never ends, too unless you pressing the ctrl+c or kill it through your os. can i know the purpose of you creating the loop that never ends? is it just a mistake or are you doing it on purpose?
#include
take input n chodo
Reference: cprogramming-bd.com/c_page4.aspx#ODD%20 Numbers