answersLogoWhite

0


Best Answer

#include <stdio.h>

#include <ctype.h>

#define n[]

int main()

{

int n, result , answer;

int a[n], b[n];

printf("Enter number of terms you would like to use :");

scanf("%d", &n);

printf("Enter first vector:\n");

scanf("%d", &a[n]);

printf("Enter second vector:\n");

scanf("%d", &b[n]);

printf("The dot product is \n" );

return 0;

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in C language to find out the dot product of two vector quantities in Cartesian?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a c program to convert from cartesian to polar coordinates?

the equation that convert from cartesian to polar coordinates and vice versa r = sqrt (x*x+y*y); phi = atan2 (y, x); x = r*cos (phi); y = r*sin (phi);


Different parts of c language program?

what are the parts of C language program


What is a program written in high level language called?

the program written in high level language is called "source program"


Where is echo used?

Echo is used for instance in sonars to analyze underwater objects or its surface; in music, in small quantities to give a more powerful and surrounding sound, and in computer language to retrieve data from a program.


Which program translate assembly language into machine language?

Assembly langue is translated into machine language by an assembler.


A source program is the program written in English language?

No.


What is the difference between qualitative and quantitative prediction?

Qualitative predictions are predictions based on quality. How effective is the product, or program expected to be? Quantitative predictions are based on quantities, in other words, numbers. How many people, products or units are expected.


Is there a program that can help you make a programming language but you don't need to know a programming language?

No. In order to make or use a program or a programming language, you need to know a programming language.


What program language changed the industry in 1964?

The DKoelle Language.


A program written in a high-level programming language is called?

the program written in high level language is called "source program"


What has the author Gaetano A Lanzarone written?

Gaetano A. Lanzarone has written: 'Introduzione alla programmazione strutturata' -- subject(s): Assembler language (Computer program language), COBOL (Computer program language), FORTRAN (Computer program language), Structured programming


What is a c compiler?

compiling program, compiler - (computer science) a program that decodes instructions written in a higher order language and produces an assembly language program