Advertisement
nguyenhappy92

Vẽ hình chữ nhật bằng C++

Oct 13th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. // Ve hinh chu nhat
  2. // Khai bao cac ham thu vien neu co
  3. #include<stdio.h>
  4. #include<conio.h>
  5.  
  6. void main()
  7. {
  8. int dai,rong;
  9. scanf("%d%d",&rong,&dai);
  10. for(int i=0;i<rong;i++)
  11. {
  12. for(int j=0;j<dai;j++)
  13. printf("*");
  14. printf("\n");
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement