Monday, 9 April 2018

Switch Statement

 We will explain a Switch statement is — The syntax of switch case is :  Syntax:- switch() { case1: statement() break; case2: statement() break; default: statement() break; } Example:- public class MyClass { public static void main(string[] arg) { int score=90; switch(score) { Case 90: System.out println(“Very...

Logical Operator

In logical operator there are two operator "&&" This is called as AND operator. "||" This is called as OR operator. Example:- public Class MyClass { public static void main(string[] arg) { int sub1=50; int sub2=30; if((sub1>=35)&&(sub2>=25))||((sub1<=60)&&(sub2<=40)) { System.out.println(“The condition...

Assignment operator (Post increment and Pre increment)

Post increment int x=10; x=x+1; System.out.println(“x”);  ————————————->>>>Output     :-11 int x=10; x++;                          //increment by one. System.out.println(“x”); —————————————->>>>Output  ...

Take a input by user

Take the input from user Syntax:- Scanner scan=new Scanner(System.in); Example:- */ Package lesson1; import java until.scanner; public class Myclass { public static void main(string[] arg); { Scanner scan=new Scanner(System.in); System.out.println(“Enter the some number”); int user-input-number=scan.nextInt(); System.out.println(“The...

Math arithmetic operator

Here, the math operator is:-     " + "   (Addition)   " – "   (Subtraction)   " * "  (Multiplication)   " / " (Division)   " %"  (Modulus) Example:- public class math; { public static void main(string[]  arg) { int x,y,answer; x=60; y=30; answer=x+y;   //(perform...

Variable Declare in Java

Declare datatype. byte (number,1 bytes) short (number,2 bytes) int (number,4 bytes) long (number,8 bytes) float(float number,4 bytes) double (float number,8 bytes) char (a character , 2 bytes) Boolean (true or false , 1 bytes) Declare (Example) short my-variable=10; float my-decimal=(float) 4.5; double my-double=11.56; char my-char=’A’; ...

Pointer and Function

The pointers are very much used in a function. Sometimes only with a pointer a complex function can be easily represented and success. The usage of the pointers in a function defintion may be classified into two groups. 1. Call by Value. 2. Call by reference Call by Value    We have seen that a function in invoked there will be a link...

Function

A function is a self contained block of statement that performs a coherent task of some kind. Functions provides modularity to the software. #include<stdio.h> int add (int x, int y) int z; z = x + y; return (z); } main( ) { int i,j,k; i = 10; j = 20; k = add(i,j)        /* function call */ printf("The value of k is %d\n",k); } Output:-  ...

Pointer

In C language a pointer is a variable that points to or references a memory location in which data is stored. Each memory cell in the computer has an address that can be used to access that location so a pointer variable points to a memory location we can access and change the contents of this memory location via the pointer. Pointer Declaration...

Popular Posts

Categories

100 Python Programs for Beginner (98) AI (40) Android (24) AngularJS (1) Api (2) Assembly Language (2) aws (17) Azure (7) BI (10) book (4) Books (198) C (77) C# (12) C++ (83) Course (67) Coursera (251) Cybersecurity (25) Data Analysis (3) Data Analytics (3) data management (11) Data Science (149) Data Strucures (8) Deep Learning (21) Django (16) Downloads (3) edx (2) Engineering (14) Euron (29) Events (6) Excel (13) Factorial (1) Finance (6) flask (3) flutter (1) FPL (17) Generative AI (11) Google (36) Hadoop (3) HTML Quiz (1) HTML&CSS (47) IBM (30) IoT (1) IS (25) Java (93) Java quiz (1) Leet Code (4) Machine Learning (85) Meta (22) MICHIGAN (5) microsoft (4) Nvidia (4) Pandas (4) PHP (20) Projects (29) pyth (1) Python (1052) Python Coding Challenge (459) Python Quiz (125) Python Tips (5) Questions (2) R (70) React (6) Scripting (3) security (3) Selenium Webdriver (4) Software (17) SQL (42) UX Research (1) web application (8) Web development (4) web scraping (2)

Followers

Python Coding for Kids ( Free Demo for Everyone)