#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 () { /*//Program to calculate the discount percentage of acutal cost as well as actuall price. int price = 90000; int discount_percentage = (90000/100)*7; int discounted_price= 90000-discount_percentage; cout <<discounted_price; return 0;*/ // Q- Priya wants to write a program to input marks in three subjects out of 100 and // calculate and display teh total marks and percentage . How should she do this task ? int ganit , science , social ; cout << "Enter the marks of...
#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