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
1
Answer:
No for loop is only used for fixed numbers of iterations
Similar questions
India Languages,
4 months ago
English,
4 months ago
Math,
4 months ago
Biology,
8 months ago
English,
8 months ago
India Languages,
1 year ago