Advertisement
Guest User

Untitled

a guest
Mar 5th, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char **argv)
  4. {
  5. int m;int n; int i; int j;
  6. char ch='*';
  7. printf("Informe o valor a ser lido:\n");
  8. scanf("%i", &i);
  9. printf("Informe segundo valora ser lido:\n");
  10. scanf("%i", &j);
  11. for(m=0;m<i;m++){
  12. for(n=0; n<j;n++){
  13. if (m==n){
  14. printf("%c",ch); }
  15. else (printf(" "));
  16. }
  17. printf("\n");
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement