Suraj Bahadur

Suraj Bahadur
  • Home
  • Features
  • _Multi DropDown
  • __DropDown 1
  • __DropDown 2
  • __DropDown 3
  • _ShortCodes
  • _Sitemap
  • _Error Page
  • Seo Services
  • Documentation
  • Download This Template

[How to] Logic Behind To Print Pattern In Any language Using The Concept Of For Loop

October 06, 2016 newbie tips and tricks
Hi all newbie's , here in this tutorial i'm going to show a simple logic behind to print pattern using for  in any programming languages  and in the end you will find a simple newbie tips & tricks to crack any pattern problem.

Before moving to coding part let me show  the logic to print start, all you need to know just logic behind to print the pattern...

suraj bahadur
newbie tips and tricks


#include<iostream>

using namespace std;

int main()
{
int i,j,k,num;

cout<<"Enter number of rows you want to print=";

cin>>num;

for(k=1;k<=num;k++)

{

for(i=1;i<=num-k;i++)

{

cout<<" ";

}

for(j=1;j<=num-i;j++)

{

cout<<"*";

}

cout<<endl;
}

return 0;

}


Share This:
Facebook Twitter Google+ Pinterest Linkedin Whatsapp
newbie tips and tricks
at October 06, 2016
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: newbie tips and tricks

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Popular

  • Way To Find  Serial Key Of Any Software Using Simple Newbie Trick
    Way To Find Serial Key Of Any Software Using Simple Newbie Trick
    Hi Newbie's ,  In this post i'm gonna give you a newbie tips and tricks to find any sofware serial key by using simple newbie tri...
  • [How to] Logic Behind To Print Pattern In Any language Using The Concept Of For Loop
    [How to] Logic Behind To Print Pattern In Any language Using The Concept Of For Loop
    Hi all newbie's , here in this tutorial i'm going to show a simple logic behind to print pattern using for  in any programming lang...
  • Part -2 :How To Print Diamond in C++
    #include using namespace std; int main(){ int i,j,k,row; row=3; for( k=1;k<=row;k++) { for(j=1;j<=3-k;j++){ cout<<...
  • How To Implement Chronometer In Android
    In this post i'll going to share the problem when implementing chronometer in android application Problem: I have one activity with t...
  • How to print diamond pattern in c++ & c...
    Following is the program to print diamond using for loop in any programming language. #include<iostream> using namespace std; ...

Tags

batch programming newbie tips and tricks Programming Logic To Print Diamond Pattern In C and C++ .......n so on. protect folder with password SHA1 Fingerprint cerification in android through Cmd Top 54 Hidden list of proxy sites trick

Search This Blog

Suraj Bahadur | 2016 |. Powered by Blogger.

Content

  • ▼  2016 (16)
    • ►  December (1)
    • ►  November (1)
    • ▼  October (7)
      • Protect Any Folder With Password Without Using Any...
      • How To Make Nameless Folder In Window
      • Sony MDR-ZX 110A Headphone(White) User Manual : fi...
      • Create A Undeletable And Unrenamable Folders In An...
      • Way To Find Serial Key Of Any Software Using Simp...
      • [How to] Logic Behind To Print Pattern In Any lang...
      • Create notification in android
    • ►  September (7)

Suraj Bahadur

Suraj Bahadur

Report Abuse

Follow @surajbahadur1

About Me

My photo
Suraj Bahadur
View my complete profile
Suraj D NeWbie | 

Linkedin

Suraj Bahadur

Instagram

Subscribe me

Posts
Atom
Posts
Comments
Atom
Comments

Visitors

suraj

  • Facebook
  • Twitter
  • LinkedIn
Created By SoraTemplates | Distributed By Blogger Templates