filmov
tv
Addition of two Numbers Program in Java vs Python 🔥

Показать описание
Addition of two Numbers Program in Java vs Python 🔥
In Java ,
class Main {
public static void main(String[] args) {
int x = 2;
int y = 1;
// add two numbers
int sum = x + y;
}
}
In Python,
x=2
y=1
print (x+y)
Assign 2 to x (x=2)
Assign 1 to y(y=1)
Perform addition sum=x+y
print the sum value
so output is 3
#itmemes #programmingmemes #codinglife
#python #c #c++ #java #funnymemes #coding
Under the Copyright Disclaimer under Section 107 of the Copyright Act 1976, there is an allowance for ‘fair use’ of copyrighted material for such purposes as education and research, scholarship, criticism, news reporting, comment, and teaching. Fair use copyright disclaimer refers to the use allowed by the copyright statute, which would otherwise be looked at as an infringement.
In Java ,
class Main {
public static void main(String[] args) {
int x = 2;
int y = 1;
// add two numbers
int sum = x + y;
}
}
In Python,
x=2
y=1
print (x+y)
Assign 2 to x (x=2)
Assign 1 to y(y=1)
Perform addition sum=x+y
print the sum value
so output is 3
#itmemes #programmingmemes #codinglife
#python #c #c++ #java #funnymemes #coding
Under the Copyright Disclaimer under Section 107 of the Copyright Act 1976, there is an allowance for ‘fair use’ of copyrighted material for such purposes as education and research, scholarship, criticism, news reporting, comment, and teaching. Fair use copyright disclaimer refers to the use allowed by the copyright statute, which would otherwise be looked at as an infringement.