Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. typedef struct Transaction
  4. {
  5. int day,month,year;
  6. int amount;
  7. char currency[3];
  8. }Transaction;
  9.  
  10.  
  11. int main ()
  12. {
  13.     int N;
  14.     scanf("%d",&N);
  15.     int i;
  16.     for(i=0;i<N;i++)
  17.     {
  18.         printf("%d/%d/%d %d",Transaction[i].day,Transaction[i].month,Transaction[i].year,Transaction[i].currency);
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement