swapping of two numbers one is integer and other one is floating-by enggfact - Enggfact

Latest

Convert your Passion into your Profession

Sunday, September 1, 2019

swapping of two numbers one is integer and other one is floating-by enggfact

#include<stdio.h>
int main()
{
int a;
float b,c;
printf("enter the integer number:");
scanf("%d",&a);
printf("\n enter the float number:");
scanf("%f",&b);
c=a+b;
printf("\n sum of the given numbers=%f",c);
return 0;
}

No comments:

Post a Comment