Sign up to connect with Santosh_23 and gain access to their complete profile
  • Member Avatar
    Santosh_23

    Replied To a Post in Insertion Sort, Bubble Sort and Selection Sort

    To learn more about sorting algorithms, Please visit [Learn Algorithms](https://www.alphacodingskills.com/algo/algo-tutorial.php). All topics are well explained with examples and implementation in various languages like Python, Java, C++, C and C#.
  • Member Avatar
    Santosh_23

    Began Watching Insertion Sort, Bubble Sort and Selection Sort

    Here is the code for [B][COLOR="Red"]Insertion Sort, Bubble Sort and Selection Sort[/COLOR][/B] [B]Insertion Sort[/B] [CODE] #include <stdio.h> main() { int i,j,key; int a[5]={5,2,3,4,1}; for(i=1;i<5;i++) { key=a[i]; while(i>0 && a[i-1]>key) { …
  • Member Avatar
    Santosh_23

    Replied To a Post in Java question count by any number

    The Java code should look like this: import java.util.Scanner; public class MyClass { public static void main(String[] args) { //final int START = 5; final int STOP = 500; int …
  • Member Avatar
    Santosh_23

    Began Watching Java question count by any number

    I am trying to get a program to work that asks for a user input to count by that number and display 10 numbers per line. I can not get …
  • Member Avatar
    Santosh_23

    Replied To a Post in Converting C++ Code to Python

    Look like the C++ code is: #include <iostream> using namespace std; int calculate(int values[], int size) { int answer = 0; for (int i =0; i< size; i +=1) { …
  • Member Avatar
    Santosh_23

    Began Watching Converting C++ Code to Python

    I have to convert a piece of C++ code to Python. Except I can't understand what it's doing. This is the code: [CODE]#include <iostream> using namespace std; int calculate(int values[], …
  • Member Avatar
    Santosh_23

    Replied To a Post in Python grade calculator

    ` mark = input("Enter marks: ") if mark >= 80: print("A") elif mark >= 70: print("B") elif mark >= 60: print("C") elif mark >= 50: print("D") else: print("F") ` To …
  • Member Avatar
    Santosh_23

    Began Watching Python grade calculator

    This is a program to get a student mark, as an input from user and print its grade based on the following criteria: if mark>=80 print 'A' if mark between …

The End.