Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(void)
- {
- int formula();
- int c;
- for (c=10;c<=100;c=c+10)
- {
- formula(c);
- }
- system("pause");
- return 0;
- }
- int formula(int a)
- {
- float f;
- f=(float)(9.0*a)/5.0+32.0;
- printf("%d度C | %.2f度F\n",a,f);
- printf("---------------------------\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment