hi
can anyone please guide me how to compile a program in asp.net web application using visual studio C#? my project is to show the selected iteration structures and conditional statements by compiling their output....
For example,
int main()
{
int num;
printf("Enter a number you want to check.\n");
scanf("%d",&num);
if((num%2)==0)
//checking whether remainder is 0 or not.
printf("%d is even.",num);
else
printf("%d is odd.",num);
return 0;
}
and on executing this program it should show the output in an other window or pop-up like this,
Output 1
Enter a number you want to check.
25
25 is odd.
Output 2
Enter a number you want to check.
2
2 is even.