From ddd476ad0554e3ae14135763cf0900508e2177ea Mon Sep 17 00:00:00 2001 From: Ahamd Date: Tue, 27 Jun 2017 21:07:06 +0300 Subject: [PATCH 1/2] new update Another C++ example --- README.md | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 1f6e2dc..1e71896 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,33 @@ int main() ``` ``` + +### c++ +``` + +#include +using namespace std; + +int main() +{ + +int x = 25 ; +int z = 26 ; +int w = 27 ; + +if ( x == 25 ) +if ( z == 26 ) +if ( w == 27 ){ + +cout << "Yes is eid days" << endl; +} + +} + +``` +``` +... + #include using namespace std; @@ -164,28 +191,6 @@ else: print ('Happy Eid Too ^_^ ') ``` -New Python Code -``` - - -#Fahad Alsubaie @FahadMIT -import time -import os -MessageBeforeEid = "The Eid will coming" -today = time.strftime("%d/%m/%Y") -EidTime= "25/06/2017" -user= os.popen('whoami').read() -EidMessage = ("Happy Eid :) Mr." + '%s' %user) -if today < EidTime: - print (MessageBeforeEid) -elif today == EidTime: - print (EidMessage) -elif today > EidTime: - print ('Today is ''%s'' You miss the Eid'%today) -else: - quit() -``` - ## javascript ``` From fd7c2ed13c60be628843dc2ea45dbf8ce8e50f6a Mon Sep 17 00:00:00 2001 From: Ahamd Date: Thu, 29 Jun 2017 21:50:16 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 43 ++++++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 1e71896..2eb14b8 100644 --- a/README.md +++ b/README.md @@ -76,11 +76,29 @@ int main() } ``` -``` -### c++ +#include + +using namespace std; + +int main() { + int x; + int y; + for(x=1;x<3;x++) + { + cout<<"happy eid "<< x<<"day "; + } + y=x; + + if(y) + cout<<"thanks alosefer "<< "all "<< y <<" day"; + +} + ``` +... + #include using namespace std; @@ -100,29 +118,8 @@ cout << "Yes is eid days" << endl; } -``` -``` ... -#include - -using namespace std; - -int main() { - int x; - int y; - for(x=1;x<3;x++) - { - cout<<"happy eid "<< x<<"day "; - } - y=x; - - if(y) - cout<<"thanks alosefer "<< "all "<< y <<" day"; - -} -``` - ## kotlin ``` package Eid