H@CK DEFENCE
A BLOG ON NETWORK SECURITY, ETHICAL HACKING AND PROGRAMMING
Welcome To The World Of Hacking
Learn Hacking|Teach Hacking|Learn To Secure|Learn To Code
Wednesday
C++ TUTORIAL 7: DIVISION & REMAINDER
#include <iostream>
using namespace std;
int main()
{
int a = 60;
int b = 30;
int div = a / b;
int rem = a % b;
cout<<"Division :"<<div<<endl;
cout<<"\nRemainder :"<<rem<<endl;
return 0;
}
OUTPUT:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment