Saturday, August 18, 2018

MULTIPLICATION TABLE


  • Problem Description

    Veena telling tables to her friend saradha, for every no of saradha veena telling tables upto 5,
    help to her to write code to solve the task.
    Input Method

    Integer ranges from 1 to 999

    Output Method

    Multiplication table upto 5

  • CODING ARENA
  • #include <stdio.h>
    struct new
      int i;
      int b;
     
    }s;
    int main()
    {
      scanf("%d",&s.b);
      for(s.i=1;s.i<=5;s.i++)
      {
        printf("%d*%d=%d\n",s.i,s.b,s.i*s.b);
      }
      

    return 0;
    }
  • Test Case 1

    Input (stdin)
    5
    
    
    Expected Output
    1*5=5
    
    2*5=10
    
    3*5=15
    
    4*5=20
    
    5*5=25
  • Test Case 2

    Input (stdin)
    10
    
    
    Expected Output
    1*10=10
    
    2*10=20
    
    3*10=30
    
    4*10=40
    
    5*10=50

No comments:

Post a Comment