Skip to content

Instantly share code, notes, and snippets.

@missbreadsuperman
Created October 17, 2016 11:57
Show Gist options
  • Save missbreadsuperman/c355fdd324df67e1cf4c6f8aadf978eb to your computer and use it in GitHub Desktop.
Save missbreadsuperman/c355fdd324df67e1cf4c6f8aadf978eb to your computer and use it in GitHub Desktop.
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
double C,F ;
scanf("%lf",&C);
F = (double)C*9/5+32;
printf("%lf %f \n",C,F);
system("pause");
}
@LarryStanley
Copy link

正確寫法

#include <stdio.h>
#include <stdlib.h>
int main(void)
{
    double C,F ;
    scanf("%lf",&C);
    F = (double)C*9/5+32;
    printf("%lf  %f  \n",C,F);
    system("pause");
    return 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment