Computer Science, asked by rishigehlotcs19, 11 months ago

Write a program in c++ that reads in a number n and prints out n rows each containing n star characters, '*'.
Thus if n is 3, then your program should print

***

Answers

Answered by utkarsh019
0

Answer:

#include <stdio.h>

int main (void)

{

int n ;

printf ( " Enter value for n : " ) ;

scanf ( " %d " ,&a ) ;

printf (" * ");

printf ("/n");

}

Similar questions