Posts

Showing posts from 2021

15/12/2021

 H ey welcome to another new blog and lets start our todays journey so as usual I woke up around 6:30am -fresh up-learning for one hour-after that I went to home for school and prepare myself for school then I left my house for school and one thing is happened with me that my friend already went for school and I had to go school alone, Somehow I reached to school and met my friends after school we came back together and also we had to tution but we didn't go but we will go tution from tomorrow after we came back to home then I read namaj e johar after  went to mustard mill for change mustard to oil and milk cake , it took too much time and also I had to wait for it and around 5:45 I came to home then I just rest it out for some time and after esha I came to madrasa to study and I just started to write this blog and after writing this blog I have to study math , c++, sst etc. Today I thought not to sleep at night means i will sleep but hardly 5 to 6 hours . So this is for today...

Something to tell

Date-13/12/021 Hello My name is Md. Minhaj Raza . I am 16 currently study in class 10th in Aditya Birala Public School that is in Rehla . I have many dreams in my life that i have to achieve in life, I Know to  make these dreams true i have to work hard i know in many things i will be fail and many will be that may not achieve but still InshaALLAH  I will try my level best and InshaALLAH I am confirm that i will achieve many things in my life but yah the condition is that i have to work hard anyhow .

questions in cpp of variables and data types

   /* //Write a program to take input from user and add and find product also    int num1,num2,sum,product;    cout<<"Enter the first operands : ";    cin>>num1;    cout<<"Enter the second operands : ";    cin>>num2;    sum = num1+num2;    product = num1*num2;    cout<<"The Sum of these numbers is : "<<sum<<endl;    cout<<"The Product of these numbers is : "<<product<<endl;    return  0;    // Write a cpp in the area of rectangle is calculated.    int length,breath,area;     cout<<"Enter the length of rectangle : ";    cin>>length;    cout<<"Enter the breath of rectangle : "; cin>>breath; area=2*(length+breath); cout<<"The area of given rectangle is : "<<area;   //Write a cpp program to find the ASCII value of given character...

//Write a program to find a frind's father's name by taking the name of your friends:

 /****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,  C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <iostream> using namespace std; int main() {         //Write a program to find a frind's father's name by taking the name of your friends:     string name;      cout<<"Enter your name :";      getline(cin,name);           if (name == "Minhaj"){          cout<<"You father's name is Aurangzeb Ansari";      } else if(name=="sajid"){          cout<<"You father's name is Tabarkh Uncle";      }e...

if else practice question for beginners with solution

  #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,...

If else problems with solution

   // date --> 09-10-2021    // if esle exercise              // // difference between signed and unsigned int ; // unsigned int num = -1; // int x = num; // cout<<num<<", "<<x; /*//Q- Take valuse of length and breadth   of a rectangle from user and check if it is square or not . int length, breadth ; cout<<"Enter the lenght of the rectangle : "<<endl; cin>>length; cout<<"Enter the breadth of the rectangle : "<<endl; cin>>breadth; if (length==breadth){   cout<<"It is a square"<<endl; }else{  ...

c++ program to check odd or even | to find size of data types | to sum of three numbers | increment and decrement operators | learnig cpp

  /* Write a c++ program to print the of n natural number.   int n, table;   cout<<"Enter the number that you want to print the table of : ";   cin>>n;    for (table = 1; table <11; table++){      int sum = n*table ;      cout<<sum<<endl;    } */    /*Write a program to check whether the number is odd or even?    int n, remainder;    cout<<"Enter your  number to check: " <<endl;    cin>>n;    remainder =n%2;    if (remainder == 0 ){  ...

c++ basic question

  #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...

c++ programming is fun to learn

  #include   <iostream> using   namespace   std ; int   main ()  {   /*//int age; cout<<"Enter your age "; cin>>age; //if else if(age<18){   cout<<"You cannot vote!"; } else{   cout<<"You can vote!! "; } */ //switch statement int   age  ; cout<< "Enter your age ! " ; cin>> age ; switch  ( age ) { case   1 :    cout<< "waris raza " ;    break ;       case   2 :   cout<< "mufti sahab" ;    break ;    case   3 :   cout<< "Azhar chchajan" ;    break ; default : cout<< "hasi bhaijaan" ;    break ; } return   0 ; }    

learning c++ is fun

  #include   <iostream> using   namespace   std ; int   main ()  {    /*Q- Write a  c++ program to input a dividend and divisor and calculate and display     the quotient and remainder     */  /* int divisor, dividend,quotient,remainder;   cout<<"Enter the dividend" <<endl;   cin>>dividend;   cout<<"Enter the divisor" <<endl;   cin>>divisor;   quotient = dividend/divisor;   cout<<"Quotient: "<<quotient <<endl;   remainder = dividend % divisor;   cout<<"Remainder: "<<remainder;*/ /* Write the c++ program to calculate the area of...

Learning stage | c++ programs

  #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...