SAD
This commit is contained in:
parent
e2a1e9baec
commit
700f5f8bd0
BIN
du3/program
BIN
du3/program
Binary file not shown.
@ -4,14 +4,16 @@ int main(){
|
||||
int result = 0;
|
||||
int value = 0;
|
||||
int vxod[999];
|
||||
//i`nt a = 0;
|
||||
for(int i = 0; i < 4; i++){
|
||||
scanf("%d",&value);;
|
||||
//int a = 0;
|
||||
//int b = 999;
|
||||
for(int i = 0; i < 999; i++)
|
||||
vxod[i] = 0;
|
||||
for(int i = 0; i < 999; i++){
|
||||
scanf("%d",&value);
|
||||
vxod[i] = value;
|
||||
//a = i;
|
||||
}
|
||||
//result = vxod[0];
|
||||
for(int i = 1; i < 4; i++){
|
||||
|
||||
for(int i = 1; i < 999; i++){
|
||||
result = vxod[0] * result + vxod[i];
|
||||
}
|
||||
printf("Vysledok je: %d.00\n", result);
|
||||
|
@ -1,8 +1,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
for(int i = 0; i < 2; i++){
|
||||
printf("%d", i);
|
||||
}
|
||||
int c = 0;
|
||||
char a = 'a';
|
||||
if(a >= 0 && a <= 255)
|
||||
printf("yes\n");
|
||||
else
|
||||
printf("no\n");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user