English, asked by aslanalhaneen, 3 months ago

Write an algorithm to calculate the sum of all number not divisible by 17 between two given integer numbers

Answers

Answered by mrabinz
1

Answer:

C program

Explanation:

#include<stdio.h>

int sum=0, U, L,i;

printf("Enter the upper and lower bound");

scanf(%d %d,&U &L);

for(i=U; i<=L ; i++)

{

if(i%17==0)

{ sum = sum +i; }

}

printf{("The sum is %d", sum);

Similar questions