Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Homework HelpRSS Feeds

Program to convert radiance to degree

Posted By: Raimundo Fischer     Category: C Programming     Views: 4649

Write a program to convert radiance to degree.

Code for Program to convert radiance to degree in C Programming

#include<stdio.h>

void main()
{
    float radiance,degree;
        printf("Enter the radiance value :");
        if(scanf("%f",&radiance)==1)
        {
            degree=radiance*180;
            printf("%0.2f radiance= %0.2f degree",radiance,degree);
        }
        else
        {
            printf("error,enter correct value");
        }
}



======================================OUTPUT===================================


Enter the radiance value :0.5
0.50 radiance= 90.00 degree
  
Share: 


Didn't find what you were looking for? Find more on Program to convert radiance to degree Or get search suggestion and latest updates.

Raimundo Fischer
Raimundo Fischer author of Program to convert radiance to degree is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!