summaryrefslogtreecommitdiff
path: root/1088/CH1/EX1.3/Example3.sce
diff options
context:
space:
mode:
Diffstat (limited to '1088/CH1/EX1.3/Example3.sce')
-rwxr-xr-x1088/CH1/EX1.3/Example3.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1088/CH1/EX1.3/Example3.sce b/1088/CH1/EX1.3/Example3.sce
new file mode 100755
index 000000000..82f6d2e2d
--- /dev/null
+++ b/1088/CH1/EX1.3/Example3.sce
@@ -0,0 +1,21 @@
+clear()
+//clc()
+printf("Example 3 : Display the calendar of the current month and of a date \nentered by the user ")
+printf("\n**********************************************************\n")
+printf("Answer :\n\n\n")
+printf("The current date is %s whose calendar is ",date())
+ct=calendar()
+clc(19)
+disp(ct(1))
+disp(ct(2))
+disp(ct(3))
+printf("\n--------------------------------------------------------------------------------------\n")
+printf("Enter a date whose calendar is to be displayed \n")
+x=input('Enter in the format [dd,mm,yyyy],ALONG WITH THE PARENTHESIS ')
+ct=calendar(x(3),x(2))
+clc(21)
+disp(ct(1))
+disp(ct(2))
+disp(ct(3))
+printf("\n\nEntered Date is %d - %d - %d \n",x(1),x(2),x(3))
+printf("\n***********************************************************")