Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define N 15
- int main(void)
- {
- int i;
- double x[]={1.0,2.0,3.0}, y[]={4.0,5.0,6.0}, xy;
- for (i=0;i<3;i++)
- {
- xy+=x[i]*y[i];
- }
- printf("x escalar y = %lf \n",xy);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement