Skip to content
DivineSEO
  • Excel
  • Python
  • C
  • Scala

Scala program to check whether a given number is EVEN or ODD

February 28, 2023 by Suraj Jha
scala program check whether the number is even or odd

How to check whether a given number is even or odd using the scala programming language. In this post, we are going to see two different methods to check whether the number is ODD and Even. The first method is by using the if else condition and the second method is by using ternary operator. … Read more

Categories Scala Leave a comment

Scala program to find the largest number among three numbers

February 27, 2023 by Suraj Jha
scala program find the largest number among three numbers

In this post, we are going to see how you can find the largest number among three numbers. This program can be made by using so many ways. We are going to learn about 2 possible ways to make this program. The first method is by using the ternary operator, the second is if else … Read more

Categories Scala Leave a comment

Scala program to find the largest number between two numbers

February 27, 2023February 27, 2023 by Suraj Jha
scala program find the largest number between two numbers

In this post, we are going to see how you can find the largest number between two numbers. This program can be made by using so many ways. We are going to 3-4 possible ways to make this program. find the largest number between two numbers using the ternary operator Output Note: Use Stdin to … Read more

Categories Scala Leave a comment

Scala Program to read and print the value of the Data Types

February 26, 2023 by Suraj Jha
scala program read print value of data types

So far we have seen the most basic programs. Now we are going to level up this a little bit. How to read and print the value of the Data Types in scala programming? In this program, we are going to take the user input and then print it to the console screen. Scala Program … Read more

Categories Scala Leave a comment

Scala Program to Print the Hexadecimal & Octal value of the number

February 26, 2023 by Suraj Jha
scala program print hexa and octal value

How to print the hexadecimal and octal value of any number in Scala Programming. Here, I am sharing the source code to print hexadecimal numbers and decimal values of any given number. Scala Program to print Hexadecimal and Octal values of number First, we declare a variable number and assign it to the value 15. … Read more

Categories Scala Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page6 Next →
© 2023 DivineSEO • Built with GeneratePress