Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///SOURCE CODE
- ///Cloned:: CSE 134: SPL Lab Final Exam for Session 2017-18 for Up-solve
- ///PROBLEM-C-Who would be Served First?
- //I just want to take input and give output first
- #include<stdio.h>
- #include<math.h>
- #include<stdlib.h>
- int i=0,j=0;
- struct io
- {
- char name[20];
- int age,batch;
- float weight,height;
- long long int p_t,dot,reg_no;
- }nigga[1000000];
- int main()
- {
- i=0;j=0;
- while(scanf("%s %d %f %f %d %lld %lld %lld",nigga[i].name,&nigga[i].age,&nigga[i].weight,&nigga[i].height,&nigga[i].batch,&nigga[i].p_t,&nigga[i].dot,&nigga[i].reg_no)!=EOF){
- i++;
- }
- int size = i;
- for(i = 0; i < size; ++i){
- printf("%s %d %f %f %d %lld %lld %lld\n",nigga[i].name,nigga[i].age,nigga[i].weight,nigga[i].height,nigga[i].batch,nigga[i].p_t,nigga[i].dot,nigga[i].reg_no);
- }
- return 0;
- }
- //asd 2 2.2 2.2 2 12 12 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement