Computer Science, asked by ashokshuka272, 6 months ago

write a program to initialise a value 2.5 3.3 7.2 print the sum and product of this number​

Answers

Answered by monalisha98
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 chauhanatharv715
0

Explanation:

  1. class meme
  2. {
  3. public static void main (string args[])
  4. {
  5. int sum,prod;
  6. int sum a+ b + c;
  7. int prod a* b * c;
  8. ln("123=");
  9. }
  10. }
Similar questions