diff --git a/C/Program 85 b/C/Program 85 new file mode 160000 index 00000000..216e562a --- /dev/null +++ b/C/Program 85 @@ -0,0 +1 @@ +Subproject commit 216e562a0e299ca545ee651f21a7188e500d6c56 diff --git a/C/program-1/program.c b/C/program-1/program.c index 6322e486..21b22fd2 100644 --- a/C/program-1/program.c +++ b/C/program-1/program.c @@ -1,15 +1,20 @@ + #include +#includeR int main() { /*initialization */ + clrscr(); int n,i,j; - printf("enter the number of rows"); /*Input the number of rows */ - scanf("%d",&n); + printf("Enter the number of rows"); /*Input the number of rows */ + scanf("%d",&i); + print("Enter the number of columns"); + scanf("%d",&j); for(i=1;i<=n;i++) /*condition */ { for(j=1;j<=i;j++) - { - printf(" %d",j); /*output */ + { + printf("%d",n); /*output */ } printf("\n"); }return 0; diff --git a/C/program-8/program.c b/C/program-8/program.c index 0ce8b9cc..3a1c062c 100644 --- a/C/program-8/program.c +++ b/C/program-8/program.c @@ -1,7 +1,7 @@ #include int main() { - + clrscr(); int y,n,m,d,j; printf("enter the input"); scanf("%d",&n); @@ -12,4 +12,5 @@ int main() printf("year=%d",y); printf("months =%d",j); printf("days=%d",d); + getch(); }