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 ?

 #include <stdio.h>

int main()

{float num1,num2;

scanf("%f\n %f",&num1,&num2);

double resnum1,resnum2;

resnum1=num1;

resnum2=num2;

printf("%lf",resnum1);

printf("\n%lf",resnum2);

               return 0;


}

Comments

Popular posts from this blog