Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Hello World in Python 2
Original file line number Diff line number Diff line change
@@ -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 """
8 changes: 8 additions & 0 deletions Taking input and printing it in C
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// to take input we use the scanf and to print we use the syntax printf
#include<stdio.h>
int main()
{
int x;
scanf("%d\n",&x);
printf("%d",x);
}
6 changes: 6 additions & 0 deletions performing mathematical operations in python 2
Original file line number Diff line number Diff line change
@@ -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)