Monday, 13 April 2015

Simple for loop statement in C++ using code blocks by Aamir mujahid

#include <iostream>

using namespace std;

int main()
{int counter;
for(counter=0;counter<=20;counter=counter+)

    cout << counter << "    ";

Simplw while loop statement in C++ langauge in Riphah international university main campus by Aamir mujahid

#include <iostream>

using namespace std;

int main()
{
    int counter;
    counter=0;
    while (counter<=20);
    {
        cout<<counter+1<<"  ";
        counter++;
    }

Simple calculator in C++ language using switch statement by Aamir mujahid

#include <iostream>

using namespace std;

int main()
{
    float num1,num2;
    char m_opr;
    cout << "enter num1"<<endl;
    cin>>num1;
    cout << "enter num2"<<endl;
    cin>>num2;
    cout<< "enter the operator"<< endl;
    cin>>m_opr;
    switch(m_opr)
    {
        case ('+' ):
        cout<<  num1 + num2 ;
        break;
        case ( '-'):
        cout << num1 - num2;
        break;
        case ( '*'):
        cout << num1 * num2;
        break;
        case ( '/'):
        cout << num1 / num2;
        break;
    }
return 0;

Monday, 19 January 2015

New and old pictures of Abaseen footbal club of tarbela dam topi swabi in KPK 2015