State the syntax of 'for' loop. Give example.
Answers
Answered by
2
Answer:
int num, count, sum = 0; printf("Enter a positive integer: "); scanf("%d", &num); //for loop terminates when n is less than count.
Answered by
1
Answer:
Example:- for(int i = 0; i < n ; i++)
Similar questions
CBSE BOARD X,
1 day ago
Environmental Sciences,
1 day ago
Science,
1 day ago
History,
2 days ago
Physics,
2 days ago
English,
8 months ago
Science,
8 months ago