//Program to demonstrate that % cannot be used with floating point
#include <stdio.h>
#include <conio.h>
void main()
{
float a=5, b=2; int c;
clrscr();
c = a % b;
printf("%d", c);
getch();
}
#include <stdio.h>
#include <conio.h>
void main()
{
float a=5, b=2; int c;
clrscr();
c = a % b;
printf("%d", c);
getch();
}
Post a Comment