13.WAP to use [%] and [/] operators.
#include<stdio.h>
void
main()
{
int i=13,j=2,k,l;
k=i/j;
l=i%j;
printf("Value of k :
%d\n",k);
printf("Value of l :
%d\n",l);
// float i=13,j=2,k,l;
// float i=13,j=2,k,l;
// k=i/j;
// l=i%j; WONT ACCEPT FLOAT VALUES FOR
MODULUS OPERATIONS
// printf("Value of k : %d\n",k);
// printf("Value of l : %d\n",l);
Comments
Post a Comment