Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int x;
- float a;
- printf("wpisz x:");
- scanf("%d",&x);
- if (x<15)
- a=1.0*x*x+3;
- if (x<=300)
- a=1.0*x+1;
- else
- a=1.0*(x*x-5)/(3*x*x+3*x);
- printf("%.2f",a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement