Computer Science, asked by anuranbhattacharya22, 8 months ago

Can I use a for loop like the one shown below when no of iterations are not known ?
#include<stdio.h>
int main()

{
int c,n;
printf("Enter value:");
scanf("%d",&n);
for(c=0;c<n;c++)
{
//some condition

}
return 0;
} ​

Answers

Answered by parthsaini13
1

Answer:

No for loop is only used for fixed numbers of iterations

Similar questions