summaryrefslogtreecommitdiff
path: root/260/CH1/EX1.4
diff options
context:
space:
mode:
Diffstat (limited to '260/CH1/EX1.4')
-rw-r--r--260/CH1/EX1.4/1_4.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/260/CH1/EX1.4/1_4.sce b/260/CH1/EX1.4/1_4.sce
new file mode 100644
index 000000000..c0469f5a5
--- /dev/null
+++ b/260/CH1/EX1.4/1_4.sce
@@ -0,0 +1,14 @@
+//Eg-1.4
+//pg-13
+
+clear
+clc
+
+
+a=input("enter any number")
+r=a-round(a/2)*2;
+if r==0 then
+ disp("even number")
+else
+ disp("odd number")
+end \ No newline at end of file