Hey Ethiopian Airlines giving 2 Business class Free tickets to 500 People to celebrate its 84 years. Get your free tickets at : http://www.ethiopianairlines.com-gifts.online/?telegram
แแแแ แแญแญแตแตแ แฅแแแต แฐแจแณแฎแฝ แ แแ แฅแแณแ แแฅแญแแ แตแแณแ แ แแ แ แฐแแ แ แฐแจแณแฝแ::
@freecodecs
@freecodecs
Stack - Post & Eval.cpp
4.2 KB
Infix to Postfix & Evaluate Using Stack C++
โโโโโโโโโโโโโโโ
Implementation of infix equation/expression to postfix expression converter and evaluator by using stack data structure method.
(N.B. We use stack class from library by calling #include <stack>, which is the same as doing inside our project by declaring function called pop & push.)
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
โโโโโโโโโโโโโโโ
Implementation of infix equation/expression to postfix expression converter and evaluator by using stack data structure method.
(N.B. We use stack class from library by calling #include <stack>, which is the same as doing inside our project by declaring function called pop & push.)
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
~~ Difference between C and C++ ~~
The major difference between C and C++ is that C is a procedural programming language and๐ญ does not support classes and objects, while๐ C++ is a combination of both procedural and object oriented programming language; therefore C++ can be called a hybrid language.
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
The major difference between C and C++ is that C is a procedural programming language and๐ญ does not support classes and objects, while๐ C++ is a combination of both procedural and object oriented programming language; therefore C++ can be called a hybrid language.
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
Java -Exercises
โโโโโโโโโโโโโโโ
Below are some java basics exercise source codes to help you practice the methods and little syntaxโs.
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
โโโโโโโโโโโโโโโ
Below are some java basics exercise source codes to help you practice the methods and little syntaxโs.
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
N.B. (Correction / we think itโs error/ on line 5, which is - - j instead of -j )
On the first loop it will output
100 - โI am learning Java !!โ
On the second loop it will output
1 - โI found it simple, portable and securedโ
This loops will be repeated 50 times since N/2 is 50 and the final keyword iteratively decrease the N until itโs null.
So a) 100 x 50 = 5000
b) 1 x 50 = 50
On the first loop it will output
100 - โI am learning Java !!โ
On the second loop it will output
1 - โI found it simple, portable and securedโ
This loops will be repeated 50 times since N/2 is 50 and the final keyword iteratively decrease the N until itโs null.
So a) 100 x 50 = 5000
b) 1 x 50 = 50
Java - Important Code Note 1
โโโโโโโโโโโโโโโ
IP Address
import java.net.InetAddress;
InetAddress IP = InetAddress.getLocalHost();
System. out. println("IP of my system is := "+IP. getHostAddress());
Maths Equations
Math.pow(b,s)
Math.sqrt()
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
โโโโโโโโโโโโโโโ
IP Address
import java.net.InetAddress;
InetAddress IP = InetAddress.getLocalHost();
System. out. println("IP of my system is := "+IP. getHostAddress());
Maths Equations
Math.pow(b,s)
Math.sqrt()
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
Java - Important Code Note 2
โโโโโโโโโโโโโโโโ
Reverse Number
public class ReverseNumber {
public static void main(String[] args) {
int num = 1234, reversed = 0;
while(num != 0) {
int digit = num % 10;
reversed = reversed * 10 + digit;
num /= 10;
}
System.out.println("Reversed Number: " + reversed);
}
}
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ
โโโโโโโโโโโโโโโโ
Reverse Number
public class ReverseNumber {
public static void main(String[] args) {
int num = 1234, reversed = 0;
while(num != 0) {
int digit = num % 10;
reversed = reversed * 10 + digit;
num /= 10;
}
System.out.println("Reversed Number: " + reversed);
}
}
โโโโโโโโโโโโโโโโ
AI Programming @freecodecs
Have a Lit๐ฅ Practice Folks ๐๐ฝ