Pour both cans pineapple in 8 x 12-inch dish (one drained, one not drained). Mix together flour and sugar; sprinkle over pineapple. Spread shredded cheese over flour sugar mixture. Pour crushed crackers over all. Pour melted margarine over crackers. Bake at 350 degrees for 25 to 30 minutes.