blob: 16aaa746b91ca346bce92426abb1707476069051 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Example 1_40
clc();
clear;
//To calculate the wavelength of source of light
betaa=0.30 //units in cm
d=0.04 //units in cm
D=180 //units in cm
lemda=((betaa*d)/D)*10^8
printf("The wavelength of source of light is %.0f angstroam",lemda)
//In text book answer is printed wrong as 6700A But the correct answer is 6667 A
|