#include<stdio.h>
int main()
{
int x,y,h,w;
printf("ENTER THE HEIGHT AND WIDTH OF SQUARE/RECTANGLE\n\n");
scanf("%d%d",&h,&w);
for(y=1;y<=h;y++)
{
for(x=1;x<=w;x++)
{
printf("^");
}
printf("\n");
}
return 0;
}
Have a Read!
Hi Everyone.
The idea for this page is to provide new c users simple c tutorials to learn how to develop the logic and more importantly correct way to write syntax.
ENJOY !!!
Saturday, January 29, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment