diff --git a/Hello World in Python 2 b/Hello World in Python 2 new file mode 100644 index 0000000..efc8c8c --- /dev/null +++ b/Hello World in Python 2 @@ -0,0 +1,4 @@ +# to print Hello world in python we have to write the following code +print "Hello World" +""" double quotes are used when we have to print string + (#) is used to show 1 line comment """ diff --git a/Taking input and printing it in C b/Taking input and printing it in C new file mode 100644 index 0000000..dea3df8 --- /dev/null +++ b/Taking input and printing it in C @@ -0,0 +1,8 @@ +// to take input we use the scanf and to print we use the syntax printf +#include +int main() +{ +int x; +scanf("%d\n",&x); +printf("%d",x); +} diff --git a/performing mathematical operations in python 2 b/performing mathematical operations in python 2 new file mode 100644 index 0000000..f4ad075 --- /dev/null +++ b/performing mathematical operations in python 2 @@ -0,0 +1,6 @@ +a = int(raw_input()) +b = int(raw_input()) +print a+b +print a-b +print a*b +print a**b # it means a raise to the power b (a^b)