C programming basics
Computer programming means giving instructions to a computer and to interact with it we need a language to communicate. There are many languages such as C, C++, Java, Python and many others each having their features. Let's discuss first why we need programming, suppose you are given ten numbers to arrange in ascending order then you can do it easily, but what if the numbers are, say ten thousand it will be a difficult task and will take a long time manually and the result may also contain errors. To simplify this task we can write a program which does it and if the algorithm is correct then we will get an accurate result in a short amount of time depending on the processor speed, this is where programming is helpful.C programming language: To easily learn C language you must start making programs in it. As you may already know that to develop programs you need a text editor and a compiler to translate a source program into machine code which can be executed directly on a machine.C++ programming language is a powerful and widely used object-oriented programming language. Given below are some C++ programs.
C Programming Language
- Hello world
- Print Integer
- Addition
- Odd or Even
- Add, subtract, multiply,divide
- Check vowel
- Leap year
- Add digits
- Factorial
- HCF and LCM
- Decimal to binary conversion
- nCr and nPr
- Add n numbers
- Swapping
- Reverse number
- Palindrome number
- Print Pattern
- Diamond
- Prime numbers
- Find armstrong number
- Generate armstrong number
- Fibonacci series
- Print floyd's triangle
- Addition using pointers
- Maximum element in array
- Minimum element in array
- Linear search
- Binary search
- Reverse array
- Insert element in array
- Delete element from array
- Merge arrays
- Bubble sort
- Insertion sort
- Selection sort
- Add matrices
- Subtract matrices
- Transpose matrix
- Multiply two matrices
- Print string
- String length
- Compare strings
- Copy string
- Concatenate strings
- Reverse string
- Find palindrome
- Delete vowels
- C substring
- Subsequence
- Sort a string
- Remove spaces
- Change case
- Swap strings
- Character's frequency
- Anagrams
- Read file
- Copy files
- Merge two files
- List files in a directory
- Random numbers
- Add complex numbers
- Print date
- Get IP address
- Shutdown computer
C++ Programming Language
- C++ Hello World
- C++ add two numbers
- C++ reverse a number
- C++ add two complex numbers
- C++ print prime numbers
- Fibonacci series C++ program
- C++ add arrays
- C++ add two matrices
- C++ generate random numbers
- C++ class example program
- C++ constructor program
- Function overloading in C++
- C++ new operator example
- Scope resolution operator in C++
Java programming basics
Java programming: Java program consists of instructions that will be executed on a machine to perform a task. For example, say arrange given integers in ascending order. This page contains sample programs for beginners to understand how to use Java programming to write simple Java programs. These programs show how to get input from a user, working with loops, strings, and arrays. Programs are provided with the output (image file), and you can also download the class file and execute it directly without compiling the source file.