Advertisement
saira12tabassum19

Untitled

Aug 7th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. //45 no problem
  2. #include<stdio.h>
  3. int main()
  4. {
  5.  
  6. int rows,column;
  7. printf("Enter rows:");
  8. scanf("%d",&rows);
  9. printf("Enter column:");
  10. scanf("%d",&column);
  11. int i,j,k=1;
  12. for(i=0;i<rows;i++)
  13. {
  14. for(j=0;j<column;j++)
  15. {
  16. printf("%d ",k);k++;
  17. }printf("\n");
  18. }
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement