#include<stdio.h> void Pattern(int iRow,int iCol) { int i,j=0; for(i=1;i<=iRow;i++) { for(j=1;j<=iCol;j++) { if((i==1)||(j==1)) { printf(" *"); } } printf("\n"); } } int main() { int iValue1,iValue2=0; printf("Enter the Value of Rows and Columns:\n"); scanf("%d%d",&iValue1,&iValue2); Pattern(iValue1,iValue2); return 0; }