Rajesh Kamisetti n=5 for i in range(1,n+1): for j in range(1,n+1): print(‘*’,end=” “) print(“\n”) Log in to Reply
Siddhi Shirke n=int(input(“enter num:-“)) for i in range(n): for j in range(n): print(“*”,end=” “) print(“”) Log in to Reply
PrepInsta Support Hey there, Thanks for answering, Kindly join our Discord server for any technical related queries. Log in to Reply
rohini //code in c++ #include using namespace std; int main(){ int row,col; cin>>row>>col; for(int i=1;i<=row;i++){ for(int j=1;j<=col;j++){ cout<<"*"; } cout<<endl; } return 0; } Log in to Reply
Lalan Thakur Javascript for(let i=1;i<=4;i++) { let row=""; for(let j=1;j<=4;j++) { row+="*"; } console.log(row) } Log in to Reply
n=4
for i in range(n):
for j in range(n):
print(‘*’,end=’ ‘)
print()
n=5
for i in range(1,n+1):
for j in range(1,n+1):
print(‘*’,end=” “)
print(“\n”)
n=int(input(“enter num:-“))
for i in range(n):
for j in range(n):
print(“*”,end=” “)
print(“”)
Hey there,
Thanks for answering, Kindly join our Discord server for any technical related queries.
//code in c++
#include
using namespace std;
int main(){
int row,col;
cin>>row>>col;
for(int i=1;i<=row;i++){
for(int j=1;j<=col;j++){
cout<<"*";
}
cout<<endl;
}
return 0;
}
Javascript
for(let i=1;i<=4;i++)
{
let row="";
for(let j=1;j<=4;j++)
{
row+="*";
}
console.log(row)
}
for i in range(1,5):
for j in range(1,4):
print(“*”,end=””)
print()
n=int(input())
for i in range(n):
print(“*”*n)
n=4
for i in range (n):
print(“*”*4)
n=int(input(“enter number of rows”))
for i in range(n):
Print(“*”*n)