or
Nikas Ghimire asked a question


#include<stdio.h>

#include<conio.h>

#include<string.h>


int main() {

int i, number, num1, num2=0;

char str1[50];

num1 = number;

for(i=2; i<=20; i+=2) {

printf("%d", i);

printf(", ");

}


return 0;

}


2 Thanks
2 Answers
Raunak Kumar asked a question

BODMAS=Bracket, Order, Division, Multiplication, Addition and Subtraction. In certain regions, PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition and Subtraction) is the synonym of BODMAS. It explains the order of operations to solve an expression.

10 Thanks
2 Answers
Arya Jha asked a question

Here, f(x)=x2 -6 logx-3=0

f(2)=4-6 log2-3=-0.806

f(3)=9-6 log3-3=3.1373

f(2).f(3)=-0.806*3.1373=-2.529422 which is negative.

Hence, the root lies between 2 and 3

c0 =(2+3)/2=2.5

f(2.5)=6.25-6 log 2.5-3=0.8623

Now

n
a(-ve)
b(+ve)
cn
f(cn)
0
2
3
2.5
0.8623
1
2
2.5
2.25
-0.050595
2
2.25
2.5
2.375
0.38664
3
2.25
2.375
2.3125
0.1631658
4
2.25
2.3125
2.28125
0.05506
5
2.25
2.28125
2.265625
0.001925

From the table,

f(2.265625)=0.001928<10-2

Therefore, the...

0 Thanks
2 Answers
Diwas Pandit asked a question

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
Diwas Pandit asked a question

Yes, a vector which has zero magnitude is also a vector in case of two vectors travelling in opposite directions with equal magnitudes. At this case, the resultant vector has zero magnitude but it is still a vector. We call it a null vector.

0 Thanks
2 Answers

Mattrab Community

Create, share and learn from the unlimited notes, photos and videos and ask your questions, answer your friends all over Nepal and grow. Create, share and learn.

Ask Mattrab is changing soon

We are excited for you to try new features. What are you excited about?

Close Open App