English, asked by neeharikayakkanti, 1 month ago

QUESTION
case of Syntaxmuntime error. The version of GCC being used is 5.5.0.
The bank Safe Money had some donnant accounts. The bark charges tenain monthly rates for the
maintenance of these accounts. Betanse of these monthly deductions, the balance of some of the
et menesative. The bank wishes to close these negative value dormant accounts
rite ant algorithm to help the bank find the number of dormant bank accounts that have a negative
balance
Input
The Horse of the input consists of an integer aumOfAccounts, representing the number of danmar
errors (NI.
The stoondine consists of N space-separated integers acl ac2, ac representing the caiarrears
Output
Print an integer representing the number of dormant accounts that must be closed for regatre batan
a
Constraints
Oltcounts's 105
* Dolinie 1006.
o pomocount:
NO
SA
GE
Exemple C program for that ​

Answers

Answered by sagunschaudhary86689
0

Answer:

bohohuvuvuviimpmu n igg

Answered by Suryakant5153
2

Answer:

C++ program:-

#include<iostream>

using namespace std;

int main()

{

  int n,c=0,s=0;

  cin>>n;

  int a[n];

  for(int i=0;i<n;i++)

  cin>>a[i];

  for(int i=0;i<n;i++)

  {

      if(a[i]<0)

      s++;

  }

  cout<<s;

   return 0;

}

----------------------------------------------------------------------------------------------------

C program:-

#include<stdio.h>

int main()

{

  int n,c=0,s=0;

  scanf("%d",&n);

  int a[n];

  for(int i=0;i<n;i++)

  scanf("%d",&a[i]);

  for(int i=0;i<n;i++)

  {

      if(a[i]<0)

      s++;

  }

  printf("%d",s);

   return 0;

}

Explanation:

Similar questions