Advertisement
gtw7375

C - Raiz Quadrada

Oct 9th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. main(){
  2. int a[10],b[10],c[20],x;
  3.  
  4. for(x=0;x<=9;x++){
  5. printf("Informe o numero:");scanf("%d",&a[x]);
  6. }
  7.  
  8. for(x=0;x<=9;x++){
  9. b[x]=sqrt(a[x]);
  10. }
  11.  
  12. for(x=0;x<=9;x++){
  13. c[x]=a[x];
  14. c[x+10]=b[x];
  15. }
  16.  
  17. for(x=0;x<=19;x++){
  18. printf("Elemento:%d\n",c[x]);
  19. }
  20.  
  21. system("pause");
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement