I am facing problem with Microsoft Visual Studio Beta 11. It was working fine till evening but not working now.
When I compile a program, it says no error but when I debug it, it shows build in errror and following error at run time:
The program code is following: (Its working fine with other compilers)
Code:
#include <stdio.h>
void main()
{
int a, b, c, d, m, n, p, q;
printf("Using For loop\n");
printf("Please enter the number of the row\n");
scanf("%d", &n);
printf("Please enter the number of the column\n");
scanf("%d", &m);
for (a = 1; a <= n; a = a + 1) {
for (b = 1; b <= m; b++) {
printf("%4d ", b * a);
}
printf("\n");
}
printf("Using While loop\n");
printf("Please enter the number of the row\n");
scanf("%d", &p);
printf("Please enter the number of the column\n");
scanf("%d", &q);
c = 1;
while (c <= p) {
d = 1;
while (d <= q) {
printf("%4d ", d * c);
d = d + 1;
}
c = c + 1;
printf("\n");
}
}
I will highly appreciate your help.