#include <stdio.h>
#include <conio.h>
void vline(int, int, int);
int main(void)
{
int row, col, height;
printf("\nEnter beginning row and column : ");
scanf("%d%d", &row, &col);
printf("\nEnter height : ");
scanf("%d", &height);
vline(row,col,height);
return 0;
}
void vline(int row, int col, int height)
{
for( ; height > 0 ; height--)
{
gotoxy(col, row);
printf("%c", 179);
row++;
}
}
#include <conio.h>
void vline(int, int, int);
int main(void)
{
int row, col, height;
printf("\nEnter beginning row and column : ");
scanf("%d%d", &row, &col);
printf("\nEnter height : ");
scanf("%d", &height);
vline(row,col,height);
return 0;
}
void vline(int row, int col, int height)
{
for( ; height > 0 ; height--)
{
gotoxy(col, row);
printf("%c", 179);
row++;
}
}
No comments:
Post a Comment
kiss on google ads if you are anonymous because your ip is trackable.thank you.
......from.admin