Problem Description
Mani 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 5CODING ARENA
#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\n%d\n%d\n",s.a,s.b,s.c);
return 0;
}
Test Case 1
Input (stdin)3 3 5
Expected Output3 3 5
Test Case 2
Input (stdin)3 3 6
Expected Output3 3 6
No comments:
Post a Comment