hi
i am learning 'C' language and using the DEV C++ compiler but its giving some errors i cant understand how to fix it / what i did wrong or i have to use TC (i don't know what this program is its in our institute ) pl. help
thanks in advance.
the program is as follows :-
/*
Name: M.K.Butan
Copyright:
Author:
Date: 09/02/12 14:15
Description:
*/
#include<stdio>
#include<conio>
void main()
{
int a,b;
int add,sub,mul,div;
printf("\n Enter the Number :");
scanf("%d%d",&a&b);
add=a+b;
sub=a-b;
mul=a*b
div=a/b;
printf("add is :%d",sum);
printf("\n sub is :%d",sub);
printf("\n mul is :%d",mul);
printf("\n div is :%d",div);
getch();
}
i am learning 'C' language and using the DEV C++ compiler but its giving some errors i cant understand how to fix it / what i did wrong or i have to use TC (i don't know what this program is its in our institute ) pl. help
thanks in advance.
the program is as follows :-
/*
Name: M.K.Butan
Copyright:
Author:
Date: 09/02/12 14:15
Description:
*/
#include<stdio>
#include<conio>
void main()
{
int a,b;
int add,sub,mul,div;
printf("\n Enter the Number :");
scanf("%d%d",&a&b);
add=a+b;
sub=a-b;
mul=a*b
div=a/b;
printf("add is :%d",sum);
printf("\n sub is :%d",sub);
printf("\n mul is :%d",mul);
printf("\n div is :%d",div);
getch();
}
Attachments
-
132.2 KB Views: 18
-
135.6 KB Views: 13