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 5Test Case 1
Input (stdin)3 3 5
Expected Output3 3 5
Test Case 2
Input (stdin)3 3 6
Expected Output3 3 6
Program
#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; }
No comments:
Post a Comment
Note: only a member of this blog may post a comment.