what are examples of loops
Answers
Answered by
5
Step-by-step explanation:
Example of a For Loop
#include <stdio. h>
int main() {
int num, count, sum = 0;
printf("Enter a positive integer: ");
scanf("%d", &num);
//for loop terminates when n is less than count.
for(count = 1; count <= num; ++count) {
sum += count;
Answered by
1
Answer:
your intro ??
✌️
Similar questions