UVA 11984 A Change in Thermal Unit Solution

Problem: https://uva.onlinejudge.org/external/119/11984.pdf

Solve in C:

#include<stdio.h>
int main()
{

    int i,n;

    while(scanf("%d",&n)!=EOF)
    {
        for(i=1; i<=n; i++)
        {
            float c,f,C;
            scanf("%f%f",&c,&f);
            C=((5.0/9.0)*f)+c;
            printf("Case %d: %.2f\n",i,C);

        }


    }

}


No comments

Most View Post

Recent post

RESTful APIs with CRUD Operations in Laravel 12| (2025)

  RESTful APIs serve as the foundation of modern web development. They follow a set of rules called Representational State Transfer (REST) t...

Powered by Blogger.