Posts

Showing posts from January, 2022

Pattern Question (print number pattern in c plus plus) with source code and small explanation 06 || Print pattern using c++ with 5 rows and 5 columns

Image
   Here I am going to print following pattern (  the number pattern ) using c plus plus language. ALGORITHM FOR PRINTING STAR PATTERN IN ASCENDING ORDER OF ROWS : header file include use namespace which standard in c plus plus Program's starting point : main() function declared two variable a  also initialize on variable count with value 0 get input of variable a use for loop for row till a use again for loop till current row number (i) for  getting column. to achieve this pattern we have to print counter numbers in increasing order (like 1,2,3,4,5...) only till column(j) which is equal to row number (i) here we are using increament operator ++ for increasing value by one 1. print row number using cout  break line using line break endl after completing row. return 0 to show that there is no error in the program. #include <iostream> using namespace std; int main(){     int a ,count= 1 ;     cin>>a;     for ( int...

Pattern Question (print number pattern in c plus plus) with source code and small explanation 05 || Print pattern using c++ with 5 rows and 5 columns

Image
 Here I am going to print following pattern (  the number pattern ) using c plus plus language. ALGORITHM FOR PRINTING STAR PATTERN IN ASCENDING ORDER : header file include use namespace which standard in c plus plus Program's starting point : main() function declared two variable a get input of variable a use for loop for row till a use again for loop till current row number (i) to achieve this pattern we have to print row numbers only till column(j) which is equal to row number (i) print row number using cout  break line using line break endl after completing row. return 0 to show that there is no error in the program. #include <iostream> using namespace std; int main(){     int a;     cin>>a;     for ( int i = 1 ; i <= a; i++)     {         for ( int j = 1 ; j <= i; j++)         {                         ...

Pattern Question (stars pattern in ascending order) with source code and small explanation 04 || Print pattern using c++ with 5 rows and 5 columns

Image
 Here I am going to print following pattern using c plus plus language in pattern question  ALGORITHM FOR PRINTING STAR PATTERN IN DESCENDING ORDER : header file include use namespace which standard in c plus plus Program's starting point : main() function declared two variable a, b get input of variable a,b use for loop for row till a use for loop again till b for column Spaces are available here till total_ column - row_number i.e. b-i after that we will print * till b here we are checking condition is that j  (refers to column) is greater that b-i(total_column - row_number , total spaces which print first ) if condition gets true than print starts else print spaces. break line using line break endl after completing row. return 0 to show that there is no error in the program. YOU CAN COPY THIS CODE AS WELL ! #include <iostream> using namespace std; int main(){     int a , b;     cin>>a>>b;     for ( int i = 1 ; i ...

Pattern Question (stars pattern in descending order) with source code and small explanation 03 || Print pattern using c++ with 5 rows and 5 columns

Image
Here I am going to print following pattern using c plus plus language in pattern question  ALGORITHM FOR PRINTING STAR PATTERN IN DESCENDING ORDER : header file include use namespace which standard in c plus plus Program's starting point : main() function declared two variable a, b get input of variable a,b use for loop for row till a use again for loop for column till b-(i-1) , here suppose b = 5 and i = 1 Now for first row where i=1 is running till 5-(1-1)=5 five. like this our loop work if i = 2 than loop will go through 5-(2-1)=4 four and so on. print * stars using cout  break line using line break endl after completing row. return 0 to show that there is no error in the program. YOU CAN COPY THIS CODE AS WELL ! #include <iostream> using namespace std; int main(){     int a , b;     cin>>a>>b;     for ( int i = 1 ; i <= a; i++)     {         for ( int j = 1 ; j <= b-(i- 1 ); j++) ...

Pattern Question ( hollow rectangle pattern in c++ ) with source code and small explanation 02 || Print pattern using c++ with 5 rows and 4 columns

Image
 Here is the pattern that I am going to print using  c plus c plus , you can check algorithm and code as well in below of the image. include header file iostream using namespace std : which show we took thing under standard or std main() function - starting poin declared variable along with datatype take input using cin , input is a used endl for line break again take input using cin , input is b use for loop for rows and it goes to till a again use for loop for column it goes to till b apply if statement that  a is total rows in the pattern and b is total column in the pattern so at the first and last position of the row and column we print starts (*)  else print space. i == 1 checks first row , i == a checks last row and j == 1 checks first column and j == b checks last column where we have to print stars after the column loop  or inner loop which goes till 'j' , we add line break so other rows can be print. that's all ! You can copy this code as well ! #inclu...

Pattern Question (rectangle pattern in c plus plus) with source code and small explanation 01 || Print pattern using c++ with 5 rows and 4 columns

Image
 Here I am going print this pattern using c ++ Above as you can see there is 5 row and 4 column  algorithm for * pattern header file using things with 'std' means 'standard' main function : starting point of program variable declaration 'a' and 'b' taking input  apply for loop to get the rows (a) and apply for loop again to get columns (b) print stars (*) using cout after completing first use endl for break the line that's all you can give the value and see the output as shown in above image. You can copy this code as well ! #include <iostream> using namespace std; int main(){     int a,b;     cin>>a>>b;     for ( int i = 0 ; i < a; i++)     {         for ( int j = 0 ; j < b; j++)         {             cout<< "* " ;         }         cout<<endl;     }     }

get-realcode : A plateform to get code and implement it in your project

 So this is first page of this blog and I want to share one think that in the blog you will get source and explanation about code with line by line along with some video to help you better understanding  about the code. Most prefer language  that I am going to use to provide the source code is  C C++ PYTHON PHP OTHER LANGUAGES HTML CSS JAVASCRIPT SQL CODE FOR PROJECT CODE FUNCTIONS FOR LENGTHY CODE WEBSITE TEMPLATE CODE   OTHERS ROADMAPS so I am going to provide details on the  above mentioned topics. And my submission is to you that save this blog in your bookmark history so you can find it easily.