I saw this video where someone says that electromagnetic wave is a chain reaction of electric and magnetic fields creating each other so the chain of wave moves forward.
I wonder where the photon is in this explanation. What is the relation between electromagnetic wave and photon?
Given a number n, print n-th Fibonacci Number.

A Fibonacci number is a number in the Fibonacci sequence. This sequence starts with 0 and 1 and after that each following number is found by adding the 2 numbers before it. This sequence goes 0, 1, 1, 2, 3, 5, 8, 13, 21 and so on.

Function Signature

int fibonacci(int n);

Input
The function accepts an integer n as the argument.

Output
The function returns the nth Fibonacci number.
I have studied quantum mechanicsatics but still confused about the wave particle dualism in simple terms. Anybodycan shed some light on this topic? Please give me a simple explanationwith diagrams if possible. Thanks.

First, let me clarify that the video you mentioned might be presenting an outdated or incorrect explanation of electromagnetic waves. According to modern physics, an electromagnetic wave is not just a chain reaction of electric and magnetic fields, but rather a disturbance or oscillation in the electric and magnetic fields that propagates through space as a self-contained entity. This disturbance is