Computer Science, asked by vishnutej102, 3 days ago

Given an array, Arr[] of integer numbers have size N. The task is to find out single or
consecutive numbers from Arr[] with O sum. When found, print "1" otherwise "O". ​

Answers

Answered by gauraja
0

Answer:

N-222222222222222222222

Answered by sourasghotekar123
0

Explanation:

From the given question the program for  Arr[] of integer numbers have size N. The task is to find out single or consecutive numbers from Arr[] with O sum. When found, print "1" otherwise "O is

#include <stdio.h>

int main()

{

// let consider the  N is 5;

int a[5]={1,2,3,4,5};  

int sum = 0, I;

for(I=0;i<5;i++)

{

sum = sum + a[I];

}

printf("Sum of elements in an array is %d\n", sum);

return 0;

The project code is #SPJ3

Similar questions