Canna

Tuesday, 25 September 2018

Multiply by 5

  • Problem Description

    Ram play a game with guna to tell if ram say number gun have to reply
    the number multiplied by 5 value, for example if ram say 2 guna has to reply 10.
    using structure concept implement it.


    Input Method

    Integer ranges from 1 to 999

    Output Method

    Value multiplied by 5

  • Test Case 1

    Input (stdin)
    3
    
    
    Expected Output
    15
  • Test Case 2

    Input (stdin)
    4
    
    
    Expected Output
    20
  • Program
  • #include <stdio.h>
    int main()
    {
     int a,b;
     scanf("%d",&a);
      b=a*5;
      printf("%d",b);
     return 0;
    }

No comments:

Post a Comment

Note: only a member of this blog may post a comment.