1 solutions

  • 0
    @ 2025-3-3 16:33:59

    C :

    #include<stdio.h>
    int main(){
    	double f,c1;
    	int c;
    	scanf("%d",&c);
    	c1=(double)c;
    	double k=9.0/5.0;
    	f=k*c+32;
    	printf("%.2f",f);
    	return 0;
    }
    

    C++ :

    #include<iostream>
    #include<iomanip>
    using namespace std;
    int main(){
    	int c;
    	cin>>c;
    	double f=9.0/5*c+32;
    	
    	
    	cout<<setiosflags(ios::fixed)<<setprecision(2)<<f<<endl;
    
    }
    

    Python :

    c=int(input())
    f=9/5*c+32
    print('%.2f'% f)
    
    • 1

    Information

    ID
    10867
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By