Welcome

Hi! This blog is for beginners of c++ and java .You can check and pick codes for your programming assignments. This will also help you to understand the concepts of these programming languages. Its all about programming.

Loops Practise(Multiple number Program)

Wednesday, May 18, 2011

#include <iostream.h>
int main ()
{
    int a;
    int b;
    do
    {
        cout <<"Enter First Number = ";
        cin >> a;
        cout <<"\nEnter Scond Number = ";
        cin >> b;
        cout <<endl;
    }
    while (a==0 || b==0);
    if (a%b==0)
    {
        cout << a <<" Is Multiple Of " << b <<endl;
    }
    else
        cout << a <<" Is Not Multiple Of " << b <<endl;

    return 0;

    }