int main()
{
printf("Enter 0 or 1 :");
scanf("%d",&i_choice);
if ( i_choice ==0 )
for( ;i_count_1 < i_number;)
{-------
------
}
if (choice == 1)
for( ;i <= i_number;)
{-------
------
}
Here I raed a user input ( 0 or 1)
So as per i/p I've to change the condition in my for loop.
if choice ==1 the condition must be (i <= i_number)
if choice == 0 the condition must be (i_count_1 < i_number)
I don't know how to use #define with this program.
anybody can help me....
Krish