We Post only the Best Stuff

C Program for Division

Previous Post »» Hello World Program in C Language

I this article We will be dealing with the Division of 2 numbers using C Language:-

Division of 2 numbers in C Language

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter the Dividend and Divisor: ");
scanf("%d %d",&a,&b);
c=a/b;
printf("Division of %d and %d is = %d"a,b,c);
getch();
}
Another Way to present above statement efficiently (For Advance Users only):-
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter the Dividend: ");
scanf("%d",&a);
printf("Enter the Divisor: ");
scanf("%d",&b);
c=a/b;
printf("Division of %d and %d is = %d"a,b,c);
getch();
}

Next Post »» 

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated
Support : Contact Us | Privacy Policy | Site Map
Copyright © 2013. Tech Jatt - All Rights Reserved
Site Design by Nitin Kundu Licensed to Tech Jatt
Proudly powered by Blogger