- Input-Output from console
- Simple arithmatic and bitwise operations
- If-Else
- Loops
- Array
- ArrayList
- HashMap
- Stack class
- Queue class
- StringBuffer class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| /* | |
| *Pattern-1 | |
| 1 | |
| 1 2 | |
| 1 2 3 | |
| *Number Right Angle Triangle Pattern | |
| */ | |
| int main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Function Declarations | |
| function sayHello() { | |
| console.log("Hello World!"); | |
| } | |
| // Call Function | |
| sayHello(); | |
| // return | |
| function sayHello() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const color = 'red'; | |
| switch(color) { | |
| case 'red': | |
| console.log('Color is red!'); | |
| break; | |
| case 'blue': | |
| console.log('Color is blue!'); | |
| break; | |
| default: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n = int(input("Enter number: ")) | |
| reversed_number = 0 | |
| while(n>0): | |
| last_digit = n%10 | |
| reversed_number = reversed_number*10 + last_digit | |
| n = n//10 | |
| print("Reversed Number:",reversed_number) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
- Introduction To Linux
- Why Linux Over Windows?
- Installing UBUNTU-19.04
- Option-1: In VirtualBox
- Minumum Laptop Config: RAM=4GB, PRO= i3, HDD or SSD?, SSD=MUST(For Good Performance In VirtualBox)
- Option-2: Dual Boot(Alongside Windowns)
- Option-1: In VirtualBox
- Minimum Laptop Config: RAM=4GB, PRO= i3, HDD or SSD?, SSD=Recommended, FreeSpace=50GB+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % Document will be printed on a4 paper, using the 12pt default font | |
| % Define that we want to use the report class template | |
| % Other classes : article, book, letter, slides and others | |
| % In the preamble we define document wide rules | |
| % Commands start with a name [optional arguments] {required arguments} | |