Introduction

The main purpose of this blog is to share our experience with the world and get experience from the world. This will be a new venture for us and we are sure, we shall learn a lot with it. we will try to Explore our mind which will be very helpful for all us. As from its name, its a blog covering all the topics. we will try to post all the interesting topics and give our opinion. Do give your point of view in comments.


"NAVIGATE VIA BLOG ARCHIVE ON RIGHT TO GET WHAT YOU ARE LOOKING FOR"


Wednesday, January 26, 2011

C CODE FOR CALCULATING REMAINDER

The following code will print the remainder as a result of two numbers

#include <stdio.h>
int main() {

int x,y,z;

printf("ENTER THE NUMBER TO BE DIVIDED\n");

scanf(“%d”,&x);

printf("ENTER THE DIVISOR\n");

scanf("%d",&y);

z=x%y;

printf("THE REMAINDER IS %d\n",z);

return 0;
}

No comments:

Post a Comment

Related Posts with Thumbnails