Skip to content

Instantly share code, notes, and snippets.

View Subhajit1999's full-sized avatar
🏠
Working from home

Subhajit Kar Subhajit1999

🏠
Working from home
  • Reev Group
  • West Bengal, India
View GitHub Profile
@Subhajit1999
Subhajit1999 / hello.py
Created January 18, 2021 05:30
fdjgildfkvdflkjfd
print('hello world')
class Universal{
private static int var = 10;
//main function
public static void main(String[] args){
var = 25;
System.out.println(var);
universal(); //this will call universal() function to the main
local(); //this will call local() function to the main
}
//custom function
class Variables{
int var = 10;
public static void main(String[] args){
var = 25;
System.out.println(var);
var = var + 5;
System.out.println(var);
}
}
one = 1
two = 2
three = one + two
print(three)
hello = "hello"
world = "programming"
helloworld = hello + " " + world
print(helloworld)
int age = 15;
System.out.println("Hello, I am "+age+" years old and after "+(18-age)+" years I will be adult.");