Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by Orvudo ( 14 years ago )
#include <stdio.h>
#include <stdlib.h>
#include<math.h>
int main()
{
int janek[4], franek[4], zofia=0, i=0;
while (i<5) {
printf("Podaj %d wspolrzedna pierwszego wektora: ", i+1);
scanf("%d", &janek;[i]);
i++;
}
i=0;
while (i<5) {
printf("Podaj %d wspolrzedna pierwszego wektora: ", i+1);
scanf("%d", &franek;[i]);
i++;
}
i=0;
while (i<5) {
zofia=zofia+(janek[i]*franek[i]);
i++;
}
printf("Iloczyn skalarny podanych wektorow wynosi: %d \n", zofia);
system("pause");
}
Revise this Paste