Dear Student,
There would be a variation in the results for dihybrid cross, if the genes for the trait were located near each other on same chromosome. This happens due to "Linkage".
When genes are located close together on the same chromosome, they are said to be linked that is, the alleles located nearby will be inherited as a single unit. They violate the Law of Segregation and Law of independent assortment, thereby they do not satisfy the Laws of Mendel.
In case of linked genes, the parental type progeny is more than the recombinant type progeny.
Regards