mcqs bucket

  • MCQs Bucket | Program Write Program in C++ that divides two float variables and finds the remainder by using explicit casting.

    mcqsbucket

      Best guide for exams of all nature, Competitive exams and Interviews

Write Program in C++ that divides two float variables and finds the remainder by using explicit casting.

	 
                                 		

include < iostream.h >
include< conio.h >
void main(){
float a,b;
int c;
a=10.3;
b=5.2;
c=(int)a % (int)b;
cout<<"Result is "<<c;
getch();
}