diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3492/CH3/EX3.12 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3492/CH3/EX3.12')
-rw-r--r-- | 3492/CH3/EX3.12/Ex3_12.sce | 18 |
1 files changed, 18 insertions, 0 deletions
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")
|