PropellerAds

Archive for 2014

Code to make transpose of matrix in C++ (algo)

This program demonstrate the conversion of matrix to its transpose using array and loops. For more detail on int, array, for loop and other basic commands see our other post on respective topic. #include<iostream> #include<conio.h> using.
Thursday, 25 December 2014
Posted by Unknown

Program, code to sort array in ascending or descending order in C++

This program demonstrate how to sort a array in ascending or descending order.. in C++. This program uses function to do this and call the function of ascending or decending function whichever may user selects. In Ascending algo The program uses swap.

Program in C++ to calculate words in sentence

This program demonstrate the calculation of words in sentence in a console application using C++ #include<iostream> #include<conio.h> using namespace std; void main() { char arr[1000] = { '-' }; int result = 0; cout << "Enter.

code to calculate average

This is a sample code to calculate average using array and for loop... for understanding array and for loop you may consult our explanation on that. #include<iostream> #include<conio.h> using namespace std; void main() { int arr[10].

sample code to calculate area of a circle

Allah Ditta wants a program that calculates and displays the area of a wheel given its radius. Use the constant value 3.14159 for π. //area of wheel #include<stdio.h>; #include<conio.h>; //executing main program void main() { //creating.

Coding sample tip calculator

Allah Ditta wants a program that calculates and displays the amount he should tip a waiter at a restaurant. The program should subtract any cold drink charges from the total bill and then calculate the tip (using a percentage) on the remainder. #include<stdio.h>; #include<conio.h>; //executing.

Arithmetic Operators, Largest & Smallest Value And Odd & Even Numbers

//Arithmetic operation on three numbers #include<stdio.h>; #include<conio.h>; //executing main program void main() { //creating var for storing values int i; int j; int k; //take input from user printf("Input three different integers.

how to sort a 2d array in C++

This program demonstrate how to sort 2d array in ascending order. The program explain it in 3x3 array you could change the values as required to meet your requirement //prog for 2d array sort #include<iostream> #include<conio.h> using.
Monday, 22 December 2014
Posted by Unknown

coding for reversing a number and then printing it in c

#include<stdio.h> #include<conio.h> void main(){ int a; int b; printf("Enter the number You want to reverse: "); scanf("%d", &a); printf("\nNumber you Entered is: "); b = printf("%d", a); printf("\nIts reverse is: "); for.

Coding program to print right triangle through odd number in C through asteriks.

#include<stdio.h> #include<conio.h> void main() { int a; for(int d=1;d<=5;d++){ do { printf("enter a odd no"); scanf("%d",&a); } while(a%2!=1); int b; for(b=0;b<a;b++) { for(int c=0;c<=b;c++) printf("*"); .

Program, code to multiply 2 matrix using 1-d array in c++

#include<iostream> #include<conio.h> using namespace std; //Entr order of matrixes void order(int &matrix1_rows, int &matrix1_colomn, int &matrix2_rows,int &matrix2_colomn) { cout << "Enter no of rows of 1st Matrix:.

Coing to Generate prime Number in c

#include<stdio.h>; #include<conio.h>; //code by waqas javed //main void main() { //initializing vars int i = 1; //prime number founded int j = 2; //chk start point int l = 1; //var factor chk var int m = 0; //number of factor int.

Fundamental data types, variable and variable scope.

VARIABLE When we want to use any value or data in our program we want to save it in our memory so that it can be used again and again. For that purpose we store it in a variable. Variable is the actually the address of a particular memory where we.
Tuesday, 14 October 2014
Posted by Unknown

Lets Get Started with programming.

Writing your first program in C/C++ According to me programming is not something to learn it comes to you automatically by practicing. Writing program is more affectionate in this respect then becoming bookish. So here is your first program to.
Monday, 13 October 2014
Posted by Unknown

Difference between post increment, decrement and pre increment,decrement

Most of the new programmers are stuck between post and pre increment. What is the difference between ++a and a++. This post will clear your confusion. ++a is a pre increment type in which first of all 1 is added in a and then its value is considered.
Sunday, 12 October 2014
Posted by Unknown

What is Data hierarchy

Data hierarchy Data hierarchy is the step by step representation of complex data in different level starting from basic bits to highest level files. We will discuss in this post how this hierarchy is formed.  Suppose we have a excel file.
Thursday, 9 October 2014
Posted by Unknown
PropellerAds
PropellerAds

Popular Post

Powered by Blogger.

- Copyright © 2025 BSCS -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -