Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Pos and Neg
//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); } } }
run
|
edit
|
history
|
help
0
un poco de strings
Q-2 dotnet
Ok
math 10.98
Fibonacci Recursive C#
constructortest
Validation along token stack feature
Simple StackOverflowException
Min Max Sum Avg
CommandForce