Sum of rows and columns in 2d Array in Java

In this tutorial, we will write two different programs to sum the row elements and column elements separately. You may go through the following topic. Java – Arrays Sum of the columns in Java Output: sum of 1 col: 12sum of 2 col: 15sum of 3 col: 18 Sum of the rows in Java Output: … Read more

Find a pair with the Given Sum in an Array in Java

In this tutorial, we will write a java program to find the sum pair in an array. Before that, you may go through the following topics in java. for loop if statement The program takes a user input for a number of elements in an array and then the value of elements. After that, the … Read more

C++ Program to display Pascal Triangle

In this tutorial, we will write a C++ program to display pascal’s triangle. Before that, you may go through the following topic in C++. for loop in C++ C++ Program to display Pascal Triangle C++ program to print pascal’s triangle: The program takes the user input for the number of rows the user wants in … Read more

C++ Program to find the Transpose of a Matrix

In this tutorial, we will learn and write a program to find the transpose of matric in C++. Before that, you may go through the following topics in C++ programming: C++ Arrays C++ loops The program takes the user input for the number of rows and columns and then the elements for the matrix. C++ … Read more

How to Split a String in C++

Let us learn how to split string in C++ programming language. We will look at a few ways to split a string. The splitting of string refers to the grouping of sentences into their individual single word. And splitting is possible only when there is a presence of some delimiters like white space ( ), … Read more

C++ Program to Calculate Difference Between Two Time Period

In this tutorial, we will write a C++ program to find the difference between two time periods. Before that, you may go through the following topic in C++. if statement in C++ C++ structures We will look at two different programs: Using if statement Using Structure C++ Program to Calculate Difference Between Two Time Periods … Read more

C++ Program to store information of a student in a Structure

In this tutorial, we will write a program to store information of a student in a Structure in C++. You may go through the following topics first. C++ Structures C++ program using structure. Output: Enter your Detail:Name: PushpaRoll Number: 1101Marks: 80Grade: A Displaying Information,Name: PushpaRoll: 1101Marks: 80Grade: A