Advertisement
Patresss

Untitled

Aug 28th, 2014
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #include <stdio.h>
  2. struct wymiary{
  3.     double a;
  4.     double h;
  5. };
  6.  
  7. struct dane{
  8.     struct wymiary boki;
  9. //  double pole;
  10. };
  11.  
  12. int main(void)
  13. {
  14.     float a,h;
  15.     //float pole_prl
  16.     struct dane *prostokat,pom;
  17.     prostokat=&pom;
  18.     puts ("Podaj boki a i h:");
  19.     scanf("%f %f",&prostokat->boki.a,&prostokat->boki.h); //tu coc pewnie namieszalem
  20.  
  21.         printf("Twoje dane: [a = %f]   [h = %f]" , prostokat->boki.a, &prostokat->boki.h);
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement