Pages

Saturday, 29 June 2019

Program to illustrate modulo operator in c

// Program to illustrate modulo divisor
#include<stdio.h>
#include<conio.h>
void main()
{
 int m,n,r;
 clrscr();
 printf("\nEnter dividend m and divisor n value:");
 scanf("%d%d",&m,&n);
 r=m-(m/n)*n;
 printf("\n\n\n Result:%d",r);
 getch();
}


No comments:

Post a Comment

Programs in turboc3 : Files

File Handling in C File Handling concept in C language is used for store a data permanently in computer. Using this concept we can store our...