Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct rectangle{
- double a;
- double h;
- };
- struct x_rectangle{
- struct rectangle rect;
- // double rect_pole;
- };
- int main(void)
- {
- float a,h,pole;
- struct x_rectangle *prostokat,pom;
- prostokat=&pom;
- puts ("Podaj boki a i h:");
- scanf("%f %f",&prostokat->rect.a,&prostokat->rect.h); //tu coc pewnie namieszalem
- printf("Twoje dane: [a = %f] [h = %f]" , prostokat->rect.a, &prostokat->rect.h);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement