Simple Test Of Multiplication:-

 #include<iostream>

#include<cstdlib>

#include<ctime>

using namespace std;

int main(){

int x,y,z,d;

srand(time(0));

x = rand()%9;

    srand(time(0));

    y = rand()%12;

z=x*y;

cout<<"how much "<<x<<" times "<<y<<endl;

cin>>d;

if(d==z)

cout<<"its very good";

else  cout<<"oops its wrong";

return 0;

}


Comments

Popular Posts