প্রথমে, সেলসিয়াস তাপমাত্রা −
সেট করুন৷double celsius = 36;
Console.WriteLine("Celsius: " + celsius); এখন এটিকে ফারেনহাইটে রূপান্তর করুন:
fahrenheit = (celsius * 9) / 5 + 32;
সেলসিয়াসকে ফারেনহাইটে রূপান্তর করতে আপনি নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন।
উদাহরণ
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Demo {
class MyApplication {
static void Main(string[] args) {
double fahrenheit;
double celsius = 36;
Console.WriteLine("Celsius: " + celsius);
fahrenheit = (celsius * 9) / 5 + 32;
Console.WriteLine("Fahrenheit: " + fahrenheit);
Console.ReadLine();
}
}
} আউটপুট
Celsius: 36 Fahrenheit: 96.8