Write a c program to add two integers and print the result ,inputs must be taken using scanf function.
Que : Write a c program to add two integers and print the result ,inputs must be taken using scanf function.
#include<stdio.h>
int main()
{
float a,b,add;
printf("Enter the first number :");
scanf("%f",&a);
printf("Enter the second number :");
scanf("%f",&b);
add=a+b;
printf("The sum is %f ",add);
return 0;
}
There are some picture related this question.
This is the input related this question. you try this and also show the output of the programm.
(: Thank You :)
Comments
Post a Comment