Hi i am using Dev C/C++.
I have used a very simple program
#include<stdio.h>
#include<conio.h>
I have stored this file in under .C extension..I receive error in scanf asCode:int main() { int basic_salary , allowance , rent , gross; scanf( "%d " & basic_salary); allowance = 0.4*basic_salary; rent = 0.2*allowance; gross = basic_salary - allowance- rent; printf("The gross salary is %d",gross); getch(); return 0 ; }
invalid operands to binary &