From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3492/CH3/EX3.12/Ex3_12.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 3492/CH3/EX3.12/Ex3_12.sce (limited to '3492/CH3/EX3.12') diff --git a/3492/CH3/EX3.12/Ex3_12.sce b/3492/CH3/EX3.12/Ex3_12.sce new file mode 100644 index 000000000..4ab40873c --- /dev/null +++ b/3492/CH3/EX3.12/Ex3_12.sce @@ -0,0 +1,18 @@ +clc +//Chapter3 +//Ex_12 +//Given +x=9 +for n1=1:x + for n2=1:x + for n3=1:x +y=n1^2+n2^2+n3^2 //let y=N^2=n1^2+n2^2+n3^2 +if (y==41) + + mprintf('%d\t%d\t%d\n',n1 ,n2 ,n3 ) + +end; +end +end +end +disp("Thus there are nine possible states") -- cgit