Commit 9c0875d4 by sameis

Prak3

parent ab15582e
Showing with 42 additions and 0 deletions
#include <stdio.h>
int main(void)
{
int S=0;
int i=0;
int N=0;
int in=0;
do {
printf("Sisesta N:");
scanf("%d" , &N);
}
while (N<=0);
int A[N];
//int A[42];
do {
printf("Sisesta %d: ", i);
scanf("%d", &in);
A[i] = in;
i++;
}
while (i < N);
i=0;
do {
S= S + A[i];
i++;
}
while (i < N & A[i] > 0);
printf("S Tulemus : %d /n", S);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment