Monday, January 21, 2013

C Language Example # 08 Find Reminder while dividing the number with another one

C Language Example # 08 Find Reminder while dividing the number with another one.

Lets find the the reminder while dividing number with another one.

C Language Code:

//Written by Latest Technology Guide    
//Title : Example 08 : Find Reminder while dividing the number with another one.
  

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
long int userval,ans;

printf("\t\tFind the reminder divide by 3");

printf("\n\nEnter 6 Digit Number :");
scanf("%ld",&userval);

ans=userval%3;

printf("\nReminder is : %ld",ans);

getch();
}


Output:

We think there is no need of Output for this program.


--------------------------------------------------------------------------------
Explanation of C Language Example # 08 : Find Reminder while dividing the number with another one.

* Enter 6 Digit Number..
* Program will calculate reminder and will display it.

Note: All programs are developed and tested using Turbo C++ 3.0 under Windows XP. We just want to provide guidelines to the users. If you are using any other Compiler or other operating system they you need to modify this program as per your requirements. 

1 comment:

  1. thank you for sharing nice article in your blog
    visit
    web tutorial programming
    https://www.welookups.com

    ReplyDelete