Thursday, April 25, 2019

WHERE ARE THE MARKS?

  • Problem Description

    Ganapathy working as a professor in ABC college, have 
    to get students three subjects points.

    so he planned to do one program to implement
    structure concept.

    Input

    3 3 5

    Output

    3 3 5
  • Test Case 1

    Input (stdin)
    3 3 5

    Expected Output
    3 3 5
  • Test Case 2

    Input (stdin)
    3 3 6

    Expected Output
    3 3 6
Solution

#include <stdio.h>
struct display
{
  int a,b,c;
}s;
int main()
{
  struct display s;
  scanf("%d%d%d",&s.a,&s.b,&s.c);
  printf("%d %d %d",s.a,s.b,s.c);
 return 0;
}

No comments:

Post a Comment

Parity

Problem Description Ram and Sita playing the parity game. Two types of parity are there. One is odd parity and next is even parity. Ram will...