THE PROGRAM IS NOT RUNING

sxy

Joined
Nov 1, 2022
Messages
4
Reaction score
0
#include <stdio.h>
int multiplication(int a,int b)
{
int c;
c=a*b;
return c;
}
void main(void)
{
int r;
r = multiplication(2,8);
printf(“%d”,r);
}
I should get 16
but it is not runing.
why?
thanks a lot
 

sxy

Joined
Nov 1, 2022
Messages
4
Reaction score
0
#include<stdio.h>
int main()
{
int a;
//clrscr();
printf(“Enter integer number for a”);
scanf("%d",&a);
if(a>0)
outp32(0x300,0x0f);
else
outp32(0x300,0xf0);
return 0
}
Why the program is not runing?
Thanks a lot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,813
Messages
2,569,696
Members
45,483
Latest member
TedDvb6626

Latest Threads

Top