Math, asked by MERCTROOPER, 2 months ago

what are examples of loops​

Answers

Answered by Anonymous
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 uu755443
1

Answer:

your intro ??

✌️‍‍‍‍‍‍‍

Similar questions