Advertisement
nguyenhappy92

in ra giá trị bình phương (a^2), lập phương (a^3), giá trị a

Oct 27th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. void main()
  4. {
  5. float a;
  6. printf (“nhap a: “);
  7. scanf (“%f”,&a);
  8. printf (“a^2= %f\n”, a*a);
  9. printf (“a^3 = %f\n”, a*a*a);
  10. printf (“a^4 = %f”, a*a*a*a);
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement