Skip to main content

Posts

#Do-while #loop You can understand Do-while loop only 5 minutes ||Loop c...

Do-while loop concepts it's very useful for the programmer the interview room so many questions ask through the interview Java do while loop is used to execute a block of statements continuously until the given condition is true. do while loop in Java is similar to while loop except that the condition is checked after the statements are executed, so do while loop guarantees the loop execution at least once. Table of Contents [ hide ] 1 Java do while loop 1.1 do while java flow diagram 1.2 Java do while loop example 1.3 do while true java 1.4 do while vs while loop Java do while loop Java do while loop syntax is as follows: do { // statements } while (expression); The expression for the do-while loop must return a boolean value, otherwise, it will throw compile time error. do while java flow diagram Java Do While Loop Java Do While Loop Java do while loop example Here is a simple java do while loop example to print numbers from 5 to 10. package

Government Job 2020 in India|| Job Vacancy For the B.E/B-tech/MBA/12th pass

           Government Job 2020 in India|| Job            Vacancy For the B.E/B-tech/MBA/12th pass The Government Job openings in India for Engineer and all the Undergraduate its a golden opportunity for the India student  The job will require mixing of various ingredients to make a unique flavor and not just this the responsibilities also require you to have a good knowledge of aroma chemicals, essential oils, plant extracts, etc. This career is closely related to chemistry and those who have a background in chemistry are best suited for this. A Flavourist has job opportunities in various sectors like food & beverages, cosmetics, fragrance, toothpaste, etc. Salary for a fresher is around Rs.15, 000 which will ... Quick & Easy Setup - Everything You Need To Start Selling Online Today. 99.99% Average Uptime। 100+ Professional Themes। Full Blogging Platform। Unlimited 24/7 Support। Fully Hosted। Social Media Integration। Fraud Prev

#ForLoop #loop #for() Deep Learning about the loop. How to internally wo...

Deepa learning the loop Java programming language ========================================================  1. Deep Learning of the loop  2. For loop   for( int i=0;i<=-1; i++,i++ ) {   printf("Hello");   } Actually All the loop having he some quality of loop in the java programmaing language have a three types of loop.   1.Entry Control loop   2. Exit control loop   3. Enhance for loop

#primenumber #givennumberprimeornot CHECK THE GIVEN NUMBER IS PRIME OR N...

Problem Description This program takes a number and checks whether a given number is prime or not. Problem Solution 1. Take a number as input. 2. Check if the number is divisible by any of the natural numbers starting from 2. 3. If it is, then it is not a prime number. Otherwise it is a prime number. 4. Exit. Program/Source Code Here is source code of the C program to check if a given number is prime. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C program to check whether a given number is prime or not * and output the given number with suitable message. */ #include #include void main() { int num, j, flag; printf("Enter a number \n"); scanf("%d", &num); if (num <= 1) { printf("%d is not a prime numbers \n", num); exit(1); } flag = 0; for (j = 2; j <= num / 2; j++) { if ((num % j) =

#PATTERN #SYMBOLPRINT #ALPHABET How to print alphabet symbols print in j...

Number Pattern Programs In Java : Java programs to print the numbers or any other symbols in different patterns are one of the frequently asked interview programs mostly for freshers.  Because, they test the candidate’s logical ability as well as coding skills which are ‘must have  skills’ for any software engineer. In this post, I have collected some of the different number pattern programs in java and have tried to solve them. I hope they will be helpful for you guys. Number Pattern Programs In Java Pattern  1 : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7   Java Program : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 import java.util.Scanner; public class MainClass { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //Taking rows value from the user System.out.println("How many rows you w

#AddingDigitOfgivenNumber #sumOFgivenDigit || How to add given number di...

C programming is a stepping stone for many programmers in the programming world. C is best to learn internals of programming and know how a computer program works internally. Since it is close to low level programming. Programming in C can be a nightmare for beginners if not practiced properly. However, you can learn and practice at Codeforwin step by step. In this programming exercise we will focus on basics of C programming. After completing this exercise you will learn basic structure and semantics of a C program and how to write mathematical programs in C. If you are not a beginner, still reached here. Hold your breath I am sure you will find these exercises interesting. Always feel free to drop your questions in comments section. I love to hear hugs and bugs from you all. Required knowledge Operators, Data types, Variables and expression, Basic input/output List of basic programming exercises Write a C program to perform input/output of all basic data types. Write

#SortingArrayElement #sorting #ArraySorting #erprince SORT THE ARRAY EL...

Java interview Question to sorting the Array element's See you are new to java or i might have suggested you to use Hash Map or other Collection classes. So lets forget it but look don't be in hurry to print the elements first sort them. And as you are having its name associated with it you have to also take care of the same. So first find the number of lines in the file and then allocate that much space to array but for 2 arrays take 1 array for storing names another for storing values suppose you got number of element in variable size so String[] name = new String[size]; int[] value = new int[size]; This will save memory or else you can set anything default Then one by one pick it from file and place it by splitting. But remember you will get values in String so you have to parse to get int here it goes get is a string array value[i] = Integer.parseInt(get[i]); value[i] = Integer.parseInt(get[i].trim());// If it wont work then string might be not t