Saturday, August 18, 2018

MULTIPLICATION OF NUMBERS

  • Problem Description

    Harinis home work for third day is to multiplication of two numbers, help Harini to solve the problem
  • CODING ARENA
  • #include <stdio.h>
    int main()
    {
      float a,b;
      scanf("%f",&a);
      scanf("%f",&b);
      printf("The Multiplication of two number is:%f",a*b);
      printf("\nThe Multiplication of two number is:%.2f",a*b);

    return 0;
    }
  • Test Case 1

  • Input (stdin)
    7.2
    
    1.5
    
    
    Expected Output
    The Multiplication of two number is:10.799999
    
    The Multiplication of two number is:10.80
  • Test Case 2

    Input (stdin)
    5.1
    
    2.3
    
    
    Expected Output
    The Multiplication of two number is:11.730000
    
    The Multiplication of two number is:11.73

No comments:

Post a Comment