What is the output of C++ program given below?
#include<iostream> using namespace std; int main() { int i,j,k=5; for(i=1;i<=5;i++) { for(j=1;j<=k;j++) { cout<<j; } k=k-1; cout<<"n"; } }
Reveal answer
Fill a bubble to check yourself
What is the output of C++ program given below?
#include<iostream> using namespace std; int main() { int i,j,k=5; for(i=1;i<=5;i++) { for(j=1;j<=k;j++) { cout<<j; } k=k-1; cout<<"n"; } }