c

C program to find the number of lines, words and characters in a string

C program to find the number of lines, words and characters in a given string. You will learn how to read and store a string in C and how to iterate through the string characters.

Read
java

Java program to find the average of two numbers

Java program to find the average of two numbers. This program will take the numbers as inputs from the user and print the average value.

Read
C++

C++ program to print the characters of a string using pointer

C++ program to print the characters of a string using pointer. We will learn how to access the characters of a string with pointer and how to print them by using a for loop and while loop.

Read
C++

C++ program to addition, subtraction, multiplication and division using a class

Learn to use class in C++ to do addition, subtraction, multiplication and division operator with examples. We will learn different ways to do it using class.

Read
python

Python program to read inputs within an interval of time

Python program to read inputs within an interval of time. We will use Timer class of the threading module of Python to take inputs in a time interval.

Read
javascript

How to return objects from JavaScript functions

Javascript program to return objects from functions. We will learn how to return objects from a function and how to return functions from functions in JavaScript.

Read
java

How to take a string with blank spaces as input in Java

Learn to take inputs of strings with blank spaces in Java. We can use the nextLine() method of the Scanner class to take a string with blank spaces as inputs.

Read
java

Java program to check if a number is valid IMEI or not

How to check if a number is valid IMEI or not in Java. The program will take one number as input from the user and print if it is a valid IMEI or not.

Read
c

C program to swap two bits of a number

C program to swap two bits of a number. Learn how to use XOR to swap two bits of a number in C using example.

Read
c

C program to convert a string to hexadecimal value

C program to convert a string to hexadecimal value. We will write one C program that will take one string as input and convert it to hexadecimal.

Read