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
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)