Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Pos and Neg
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//NIS Aktobe 24/01/2022 using System; namespace Rextester { public class Program { public static void Main(string[] args) { int x=0,y=0; Console.WriteLine("Array Program"); int [] mas={-9,6,45,87,-98,-98,0,4,66,88,10256,32}; for (int i =0;i<12;i++) { if (mas[i]>0) {x=x+1;} else {y=y+1;} } Console.WriteLine("Positive Numbers " + x); Console.WriteLine("Negative Numbers " + y); } } }
Show compiler warnings
[
+
]
Show input
edit mode
|
history
|
discussion