#include <iostream> using namespace std ; int main (){ //date-12/11/2021 /*int length, breadth; cout<<"Enter the length and breadth of the rectangle. :"; cin>>length; cin>>breadth; if(length==breadth){ cout<<"yes it is square" ; } else { cout<<"It is not Square"; } // Take three int input from user from user and print greatest among them . int num1,num2,num3; cout<<"Enter the first number :" <<endl; cin>>num1; cout<<"Enter the first number :"<<endl; cin>>num2; cout<<"Enter the first number :"<<endl; cin>>num3; if (num1>num2 && num3<num1){ cout<<"First number is greater : "<<num1; } else if (num2>num1 && num3<num2){ cout<<"Second number is greater : "<<num2; } else { cout<<"Third number is greater : "<<num3; } int bholu,...
#include <iostream> using namespace std ; int main (){ /* Q- Write a program where the user is asked to enter two integers ( divisor and dividend) and the quotient and the remainder of their divison is computed . ( Both divisor and dividend should be integers). int dividend, divisor, quotient , remainder; cout<<"Enter your dividend : "; cin>>dividend; cout<<"Enter your divisor : "; cin>>divisor; quotient = dividend/divisor; remainder = dividend%divisor; cout<<"The quotient is : "<<quotient<<endl <<"The rema...
Comments
Post a Comment