Tuesday 19 December 2017

Learn C language Part 15 Print lower Trianlge pattern nested loop

#include <stdio.h>

#include <conio.h>



main()

{



int i=0,j=0;

for(i=0;i<10;i++)

{





for(j=0;j<=i;j++)

{



printf("x");



}

printf("\n");













}

//outer loop end...................



























}




Learn C language Part 14 Print Upper Trianlge pattern nested loop





#include <stdio.h>

#include <conio.h>



main()

{





int i=0,j=0;







for(i=0;i<5;i++)

{





for(j=i;j<5;j++)

{



printf("*");

}



printf("\n");







} //outer looop





























}




Learn C language Part 13 Print Square using nested loop





#include <stdio.h>

#include <conio.h>



main()

{





int i=0,j=0;







for(i=0;i<5;i++)

{





for(j=0;j<15;j++)

{



printf("*");

}



printf("\n");







} //outer looop





























}




Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...