Pages

Sunday 20 May 2012

program to to print spaces


85./*Write a program to to print spaces*/


#include<stdio.h>
#include<conio.h>
main()
{
int i,sp;
clrscr();
printf("Enter The Number of Spaces:");
scanf("%d",&sp);
i=0;
while(i<=sp)
{
printf(" ");
i=i+1;
}
printf("*");
getch();
}


OUTPUT
            Enter The Number of Spaces: 5
                 *

No comments:

Post a Comment