Skip to content

Pro Programming

Professional way of Programming

  • Home
  • C MCQs
  • C/C++
  • Java
  • Python
  • MySQL
  • Online Compiler
  • Topics
    • Arrays
    • Strings
    • Link Lists
    • Trees
    • Shapes
    • Articles
    • Games
    • Projects

Program to print right triangle shape using nested for loops

Simple program to print right triangle shape in C++

A very simple program to print right triangle shape in C++. PROGRAM: #include<iostream> using namespace std; int main() { for(int i=0;i<=5;i++){ for(int j=0;j<=i;j++) { cout<<j; } cout<<endl; } return 0; }   OUTPUT: 0 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5

Categories c programming, Program to print right triangle shape using nested for loops, series Leave a comment
  • Email
  • Facebook
  • Twitter

Recent Posts

  • C/C++ Compiler for Android OS.
  • Simplest way to Rebuild GTID based replication using Mysqldump
  • MySQL skip slave error in GTID based Replication
  • RSA algorithm in C easy implementation
  • Download Turbo C++ for Windows 11, 10, 7, 8
  • N Queens problem implementation in Python
  • Upgrade MySQL 5.7 to 8 via Shell script
  • Monitor MySQL Error logs from AWS Cloudwatch
  • Python program to monitor disk usage in EC2
  • Simple MySQL Shell script for backup using Mysqldump
© 2023 Pro Programming • Built with GeneratePress