how to generate the following pattern?
4
43
432
4321
Answers
Answered by
3
u can use this code to get the pattern...
Attachments:
kvnmurty:
:)
Answered by
2
#include <stdio.h>
main {
int row, col;
for (row=4; row >= 1 ; row--) {
for (col=4 ; col >= row ; col--)
printf("%d",col);
printf("\n");
}
}
===========================
C Plus Plus
#include <iostream>
using namespace std;
int main()
{
int row, col;
for (row=4; row >=1 ; row--) {
for (col
=4 ; col >= row ; col-- )
cout << col ;
cout
<< "\n" ;
}
}
Similar questions
Math,
7 months ago
English,
7 months ago
Math,
7 months ago
Social Sciences,
1 year ago
Science,
1 year ago
Social Sciences,
1 year ago