You can obtain floating-point by float/int not int/int you have to change your variables 'a' and/or 'b' to float or do something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <iostream>
using std::cout;
using std::endl;
int main(){
int b=13;
int a=2;
float c;
c=static_cast<float>(b)/a; //create a temporary floating-point copy of its operand in parentheses 'b'
cout<<"C= "<<c<<endl;
return 0; //indicate successful termination
}//end main