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