You are here

Page not found

Search results

  1. getmaxcolor function

    ... starts from zero. Declaration: int getmaxcolor(); C program of getmaxcolor #include<graphics.h> #include<conio.h> ... ] ;    initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ;        max_colors = getmaxcolor ( ...

    Yogesh Suneja - 08/01/2018 - 20:55

  2. Java program to print alphabets

    Java program to print letters (i.e., a, b, c, ..., z in lower case) on the screen using a loop. Java program ... program: Printing alphabets using a while loop (The code snippet shows only the body of the main method): char c = ...

    Yogesh Suneja - 04/12/2019 - 09:16

  3. Matrix multiplication in Java

    ... )   {     int m, n, p, q, sum = 0 , c, d, k ;       Scanner in = new Scanner ( System . in ... of first matrix" ) ;       for ( c = 0 ; c < m ; c ++ )       for ( d = ...

    Yogesh Suneja - 05/12/2019 - 20:30

  4. Using multiple classes in a Java program

    ... file somewhere in other projects without recompiling the code. In a nutshell number of .class files created are equal to the number of ... many classes in a single file isn't recommended, as it makes code difficult to read. Instead, you can create a separate file for every ...

    Yogesh Suneja - 04/12/2019 - 20:24

  5. Binary search in Java

    Java program for binary search: This code implements the binary search algorithm. Please note that input numbers ... ( String args [ ] )   {     int c, first, last, middle, n, search, array [ ] ;       Scanner in ...

    Yogesh Suneja - 05/12/2019 - 09:11

  6. Bubble sort in Java

    ... ( String [ ] args ) {     int n, c, d, swap ;     Scanner in = new Scanner ( System . in ... n + " integers" ) ;       for ( c = 0 ; c < n ; c ++ )       array [ c ] = ...

    Yogesh Suneja - 05/12/2019 - 20:40

  7. Transpose of a matrix in Java

    ... args [ ] )   {     int m, n, c, d ;     Scanner in = new Scanner ( System . in ) ... elements of the matrix" ) ;     for ( c = 0 ; c < m ; c ++ )       for ( d = ...

    Yogesh Suneja - 05/12/2019 - 20:21

  8. Swapping of two numbers in Java

    ... } } For other methods to swap numbers see: C program to swap using bitwise XOR . ...

    Yogesh Suneja - 05/12/2019 - 21:15

  9. Linear search in Java

    ... ( String args [ ] )   {     int c, n, search, array [ ] ;       Scanner in = new ... n + " integers" ) ;       for ( c = 0 ; c < n ; c ++ )       array [ c ] = ...

    Yogesh Suneja - 05/12/2019 - 08:57

  10. If else program in Java

    ... programming if else statement // If else in Java code import java.util.Scanner ; class IfElse {   ... marksObtained > 60 )         grade = 'C' ;       else         grade = 'D' ;     ...

    Yogesh Suneja - 04/12/2019 - 00:32

Pages