Answer:
c = float(input("Enter the temperature in Celsius: "))
f = c * 1.8 + 32
print("The temperature in Fahrenheit: " + str(f))
k = (f - 32) / 1.8 + 273.15
print("The temperature in Kelvin: " + str(k))
Explanation:
*The code is in Python.
Ask the user to enter the temperature in Celsius
Convert the Celsius to Fahrenheit using the conversion formula and print it
Convert the Fahrenheit to Kelvin using the conversion formula and print it
Answer:
FALSE
Explanation:
The exit function is used to terminate or halt the process.
Syntax-
void exit(int status)
Exit function (exit()) can be used in any function not only main() and it will terminate your whole process.
<u></u>
<u>Example-</u> C Program
#include<stdio.h>
#include <stdlib.h>
// function declaration
float exitexample ( float x );
// Driver program
int main( )
{
float a, b ;
printf ( "\nEnter some number for finding square \n");
scanf ( "%f", &a ) ;
// function call
b = exitexample ( a ) ;
printf ( "\nSquare of the given number %f is %f",a,b );
/*This will not printed as exit function is in exitexample() function*/
}
float exitexample ( float x ) // function definition
{
exit(0); //exit function
float p ;
p = x * x ;
return ( p ) ;
}
In this exercise we have to use the knowledge in computational language in python to write a code with circles and squares.
<h3>how to draw geometric figures in python?</h3>
<em>inputs = 100</em>
<em>radius</em>
<em> draw_circle(radius);</em>
<em> pendown()</em>
<em> begin_fill()</em>
<em> circle(radius)</em>
<em> end_fill()</em>
<em> penup()</em>
<em>left(90)</em>
<em>forward(radius*2)</em>
<em>right(90) </em>
<em>penup()</em>
<em>setposition(0,-200)</em>
<em>color("gray")</em>
<em>bottom_radius = int(input("What should the radius of the bottom circle be?: "))</em>
<em>draw_circle(bottom_radius)</em>
<em>draw_circle(bottom_radius)</em>
See more about python at brainly.com/question/18502436
Answer: False
Explanation:
Web designers are not using programming languages to write websites.
Answer:
num = int(input("Enter a number: "))
if (num % 2) == 0:
print("{0} is Even number". format(num))
else:
print("{0} is Odd number". format(num))