C
Programming and Technical
Programming
Technical
write a prog such that take 'n' as input and print the o/p.
for example if n=3 then o/p is as folows
1
2*2
3*3*3
3*3*3
2*2
1
and if n=6, then
1
2*2
3*3*3
4*4*4*4
5*5*5*5*5
6*6*6*6*6*6
6*6*6*6*6*6
5*5*5*5*5
4*4*4*4
3*3*3
2*2
1
Read Solution (Total 10)
-
- #include
int main()
{
int n,i,j;
scanf("%d",&n);
for(i=1;i - 9 years agoHelpfull: Yes(6) No(0)
- main()
{
int I,o,n;
clrscr();
printf("enter number");
scanf("%d",&n);
for(o=1;o - 9 years agoHelpfull: Yes(1) No(0)
- #include
#include
using namespace std;
int main()
{
int n,i,j;
coutn;
for(i=1;i - 9 years agoHelpfull: Yes(0) No(0)
- #include
int main()
{
int i,j;
for(i=1;i - 9 years agoHelpfull: Yes(0) No(1)
- #include
void main()
{
int i,j,n;
printf("Enter the doubling factor: ");
scanf("%d",&n);
for(i=1;i - 9 years agoHelpfull: Yes(0) No(0)
- #include
#include
int main()
{
clrscr();
int i, j;
for(i=0;i=1;i--)
{
for(j=1;jj)
{
printf("*");
}
}
printf("n");
}
getch();
return 0;
}
- 9 years agoHelpfull: Yes(0) No(0)
- #include
int main(void) {
int n,i,j;
scanf("%d",&n);
for(i=1;i - 9 years agoHelpfull: Yes(0) No(0)
- #include
#include
int main()
{
int i,j,n;
printf("Enter no");
scanf("%d",&n);
for(i=1;i - 9 years agoHelpfull: Yes(0) No(0)
- int main(int argc, char *argv[]) {
int a,i,j;
int temp;
printf("Enter a value ");
scanf("%d",&a);
temp=a;
for(i=1;i - 9 years agoHelpfull: Yes(0) No(0)
- #include
#include
void main()
{
int i,j,row;
clrscr();
printf("Enter no of rows:");
scanf("%d",&row);
for(i=1;i - 9 years agoHelpfull: Yes(0) No(0)
C Other Question