Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. int main()
  4. {int t1[20],t2[30],t3[50],i,j,nb,n1,n2;
  5. do {printf("donner la dimension du premier tableau\n");
  6. scanf("%d",&n1);
  7. }
  8. while(n1<=0||n1>20);
  9. do {printf("donner la dimension du deuxieme tableau\n");
  10. scanf("%d",&n2);
  11. }
  12. while(n2<=0||n2>30);
  13. printf("donner t1[%d]: ",0);
  14. scanf("%d",&t1[0]);}
  15. for(i=1;i<n1;i++)
  16. {do{
  17. printf("donner t1[%d]: ",i);
  18. scanf("%d",&t1[i]);}
  19. while(t1[i]<t[i-1]);}
  20.  
  21. printf("donner t2[%d]: ",0);
  22. scanf("%d",&t2[0]);}
  23. for(i=1;i<n2;i++)
  24. {do{
  25. printf("donner t2[%d]: ",i);
  26. scanf("%d",&t2[i]);}
  27. while(t2[i]<t2[i-1]);}
  28.  
  29.  
  30. getch();
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement