15 Claps
0 Comments
A negative of a vector represents the direction opposite to the reference direction. It means that the magnitude of two vectors are same but they are opposite in direction.
For example, if A and B are two vectors that have equal magnitude but opposite in direction, then vector A is negative of vector B.
5 Thanks
2 Answers
6 Claps
0 Comments
#include<stdio.h>
#include<conio.h>
#include<string.h>
int main() {
int i, nextTerm;
int t1 = 2, t2 = 2;
nextTerm = t1+t2;
printf("%d, %d, ", t1, t2);
for (i = 3; i <= 10; ++i) {
printf("%d, ", nextTerm);
t1 = t2;
t2 = nextTerm;
nextTerm = t1 + t2;
}
return 0;
}
2 Thanks
2 Answers
3 Claps
0 Comments
7 Claps
0 Comments
1 Thanks
2 Answers
