Home   Easy-Code    Forum  Updater 
Twitter Facebook



Program to display five numbers on each line using c

Critics Rating:

Users Rating:

    /* PROGRAM TO DISPLAY FIVE NUMBERS ON EACH LINE */

#include <stdio.h>

main()

{

int i,c=0;

clrscr();

for (i=1;i<100;i++)

{

printf("%4d",i);

c++;

if(c%5==0)

printf("\n");

}

getch();

}







Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.