Coder Baba
2.41K subscribers
1.01K photos
23 videos
722 files
723 links
Everything about programming for beginners.
1 and only official telegram channel of CODERBABA India.

Content:
.NET Developer,
Programming (ASP. NET, VB. NET, C#, SQL Server),
& Projects
follow me https://linktr.ee/coderbaba
*Programming
*Coding
*Note
Download Telegram
πŸš€Java Variable:
1, Variable is the name of a memory location in which we can store the value.
2, The variable value can be change.
3, A variable is defined by combining an identifier, data types, and an initializer.
4, The first character in the variable name must be an alphabet, underscore, a digit, or a dollar sign. 5, All variables have a scope
6, The identifier is the name of the Variable.
7, Commas or blanks are not used inside a variable name.

πŸš€Java Variable Declaration Syntax :

Type Variable name;
int is a type
a ,b and a*b is a variable-name



Java variable declaration syntax Rules:

Type Variable name:
int Roll_No; //Roll_No declare a Variable
float Percentage; //Percentage declare a Variable
Roll_No=40 ; //assigns value in variable
Precentege=40.80; //assigns value in variable




How to Declare a variables in Java?
The Variables are declared in various types:


int abc;// this declare a variable
int abc;// (abc and a_bc are a variable)
int a,b,x,z;// (a,b,x,z) are a variable
byte a1=40;//initialize a.
double a2=40.80 ;//like a float
Char a3=β€œram”;//a variable gain value ( ram )



Q-Addition of Variables Java Example?


int a,b,c,d;
a=10; b=20; c=30; d=40;
System.out.println(a+b+c+d);


Output :

100


Q-Variable increment values in Java?


int a=10;// a is a Variable
a+=40;
a=a+20;
System.out.println(a);



Output :

70


Q-Create a variable and store a no inside this variable and print output?


int a;
a=40;

OR

int a=40;
System.out.println(a);


int a;
a=40;



Output :

40


Q-Create a string variable and store a no inside string type variable and print output?


String a="Ram ";
String b="Lakshman ";

OR

String a,b;
a="Ram ";
b="Lakshman ";
System.out.println(a+b);




Output :

RamLakshman



Constant:
Constant is used when you store a value inside a variable, but use Constant after you can’t overwrite the existing deal.
Good Morning All,
New Post on Instagram
πŸ‘‡Check πŸ‘‡ out πŸ‘‡this
What is Cookies in JavaScript
https://www.instagram.com/p/Cr2E2KTBUS5/?utm_source=ig_web_copy_link
SQL for Data Science.pdf
347 KB
SQL for Data Science CheatsheetπŸ‘†βœ…πŸš€
What is Pseudocode?
πŸ‘‡πŸ‘‡πŸ’ͺπŸ‘‡πŸ‘‡
https://www.instagram.com/p/Cr7youYB-6H/?utm_source=ig_web_copy_link
computer flowchart
πŸ‘‡πŸš€πŸš€πŸš€πŸš€πŸ‘‡
https://www.instagram.com/p/Cr8FN22hPtT/?utm_source=ig_web_copy_link
πŸ’ͺ10 AI tools you cannot miss in 2023πŸ’ͺ

πŸ‘‰πŸ»1. Writing ➝ Textblaze.me/ai

πŸ‘‰πŸ»2. Logo ➝ AppIcons.ai

πŸ‘‰πŸ»3. Design ➝ StockImg.ai

πŸ‘‰πŸ»4. Code ➝ TelePortHQ.io

πŸ‘‰πŸ»5. Video ➝ Elai.io

πŸ‘‰πŸ»6. Images ➝ Midjourney.com

πŸ‘‰πŸ»7. Slides ➝ Sendsteps.com

πŸ‘‰πŸ»8. Emails ➝ Remail.ai

πŸ‘‰πŸ»9. Website ➝ Hocoos.com

πŸ‘‰πŸ»10. Meeting ➝ Otter.ai

for more info
subscribe my youtube channel #coderbaba
and join my Telegram @Coder_baba
15_must_know_coding_patterns.pdf
3.1 MB
Subscribe toπŸ‘‰πŸ» "CODER BABA" YouTube channel ✨ for coding, programming, software related content πŸ’―πŸ’―
JAVASCRIPT NOTES .pdf
239.8 KB
Complete & Brief Javascript notes
πŸš€Top 10 Github Repositories For Web DeveloperπŸš€

1. Web Developer-Roadmap : https://github.com/kamranahmedse/developer-roadmap

2. 30-Seconds-Of-Code : https://github.com/30-seconds/30-seconds-of-code

3. Awesome-Cheatsheets : https://github.com/LeCoupa/awesome-cheatsheets

4. CSS-Protips : https://github.com/AllThingsSmitty/css-protips

5. 33-JS-Concepts : https://github.com/leonardomso/33-js-concepts

6. You-Dont-Know-JS : https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed

7. Front-End-Checklist : https://github.com/thedaviddias/Front-End-Checklist

8. Javascript-Questions : https://github.com/lydiahallie/javascript-questions

9. Clean-Code-Javascript : https://github.com/ryanmcdermott/clean-code-javascript

10. free-programming-books : https://github.com/EbookFoundation/free-programming-books

πŸ™ Subscribe toπŸ‘‰πŸ» "CODER BABA" YouTube channel ✨ for coding, programming, software related content πŸ’―πŸ’―πŸ™
πŸ‘‰ PYTHON CODE FOR NUMBER GUESSING GAME πŸ‘ˆ

import random
import math

lower = 0
upper = 100

x = random.randint(lower, upper)
limit = round(math.log(upper - lower + 1, 2))

print("\n\tYou've only ", limit, " chances to guess the integer!\n")

count = 0

while count <= limit:
count += 1
guess = int(input("Guess a number:- "))

if count == limit:
print("\n\tThe number is %d" % x)
print("\tBetter Luck Next time!")
break
if x == guess:
print("Congratulations you did it in ",count, " try")
break
elif x > guess:
print("You guessed too small!")
elif x < guess:
print("You Guessed too high!")


😎 Hope you guys liked it @Coder_baba