1.

Write down the code for the following output using while loop. * * * * * * * * * *

Answer»

#include <iostream>

using namespace std; 

int main() 

int i,j;

i=1

while(j<=4)

{

j=1;

while(j<=i)

{

cout<<*";

j++;

}

i++;

cout<<endi;

}

}



Discussion

No Comment Found

Related InterviewSolutions