From a96b8b84b9e25d4486adf780751f9ed0edeaddfc Mon Sep 17 00:00:00 2001 From: mrroy2 <91710817+mrroy2@users.noreply.github.com> Date: Fri, 1 Oct 2021 10:15:08 +0530 Subject: [PATCH] Update 51. Solid Rectangle Pattern.c --- 51. Solid Rectangle Pattern.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/51. Solid Rectangle Pattern.c b/51. Solid Rectangle Pattern.c index ef821f9..743e360 100644 --- a/51. Solid Rectangle Pattern.c +++ b/51. Solid Rectangle Pattern.c @@ -4,10 +4,10 @@ int main() { int rows,columns,i,j; printf("Enter the number of rows: "); - scanf("&d",&rows); + scanf("%d",&rows); //Takes input from user for rows printf("Enter the number of columns: "); - scanf("&d",&columns); + scanf("%d",&columns); //Takes input from user for columns for(i=1; i<=rows; i++){//outer for loop for (j=1; j<=columns; j++){//inner for loop