About some program


Hello,

I am making a loop program in which I have to take input from a user and that input is basically an int value and i want it to be stored in an array.

I have made a program but I wanted to know that can we write a "for loop" inside an "if statement"?

If we have numbers that we want to display as output on the screen , can we use a variable as:

int num =1,4,7,9,5,7; ?

Thanks
Last edited on
int num[] ={1,4,7,9,5,7};
Topic archived. No new replies allowed.