Problem Description: On one beautiful Sunday Selvan went to Aaron's house for exam preparation. They have decided to study Mathematics subject because they have exams by coming Monday, Aaron is a master in Mathematics but Selvan is not so good in Mathematics so James trained with Selvan for getting a high score in the exam. After teaching some problems to Selvan.Aaron have given some tasks to Selvan to solve. The problem is to convert input float into a double. Can you help Selvan in finding the solution ? Constraints: 1.00 s num1 s 100.00 1.00 num2 s 100.00 1.00 s resnum1 s 100.00 1.00 ≤ resnum2 s 100.00 Input Format: The first and second line of the input represents two different input value of type float. Output Format: The first and second line of the output represents outputs of first and second line of input of type double.
Answers
Answered by
2
Answer:
In the Master’s program in Mathematics, students deal with mathematics as a precise science. Numerous opportunities to acquire advanced knowledge are available to them, concerning areas such as Analysis and PDE, Algebra and Geometry, Probability Theory, Numerical Analysis and Scientific Computing, Optimization or Biomathematics and Biostatistics. In contrast to all other mathematical Master’s programs at the Technical University of Munich, students do not have to complete a minor. However, they can incorporate lectures from one or more minors into their studies. During extra-disciplinary courses, students acquire soft skills in areas such as rhetoric and presentation, which are indispensable for their future careers
Answered by
3
Answer:
Given:
Constraints: 1.00 s num1 s 100.00 1.00 num2 s 100.00 1.00 s resnum1 s 100.00 1.00 ≤ resnum2 s 100.00 Input Format: The first and second line of the input represents two different input value of type float. Output Format: The first and second line of the output represents outputs of first and second line of input of type double.
To find:
Help Selvan in finding the solution ?
Solution:
#include <stdio.h>
int main()
{
float num1,num2;
double resnum1,resnum2;
scanf("%f",&num1);
scanf("%f",&num2);
scanf("%lf",&resnum1);
scanf("%lf",&resnum2);
printf("\n%lf",num1);
printf("\n%lf",num2);
return 0;
}
#SPJ5
Similar questions
English,
3 hours ago
Math,
3 hours ago
English,
5 hours ago
English,
5 hours ago
Social Sciences,
8 months ago