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

Related Posts Plugin for WordPress, Blogger...