Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. double a;
  7. double b;
  8. double x;
  9. scanf("%lf",&a);
  10. scanf("%lf",&b);
  11. scanf("%lf",&x);
  12. double result = a*x+b;
  13. printf("%lf",result);
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement