write a program to initialise a value 2.5 3.3 7.2 print the sum and product of this number
Answers
Answered by
3
Answer:
#include<studio.h>
int main()
{
int a= 2.5,b=3.3,c=7.2;
int sum,prod;
sum= a+b+c;
prod=a*b*c;
printf(" The sum of the numbers is %d and the product is %d.",sum,prod);
return 0;
}
Answered by
0
Explanation:
- class meme
- {
- public static void main (string args[])
- {
- int sum,prod;
- int sum a+ b + c;
- int prod a* b * c;
- ln("123=");
- }
- }
Similar questions