Time taken (t) = 3 sec
Velocity of sound (v) = 332 m/s
Distance travelled (d) = ?
We know,
d = v x t = 332 x 3 = 996 m
Hence, the source of thunder is about 996 m far from the boy.
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.
1. sol:
P | q | ~p | ~p ^ q |
| T T F F | T F T F | F F T T | F F T F |
#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;
}
