0

C++ for 1st year

Posted by ေမၿမဳိ့သား on 7:07 AM in
ဒီ ပုစၦာ ေလး ကေတာ့ C++ ရဲ့ အေၿခခံ အက်ဆံုးၿဖစ္တဲ့ ဂဏန္း ၂ လံုးကို ေပါင္း ။ နူတ္။  ေၿမွာက္ ။ စား ။
လုပ္ ထားတာ ၿဖစ္ပါသည္ဗ်ာ။


#include "stdafx.h"
#include<iostream>
#include<conio.h>
#include<stdlib.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{

    double a,b,c,d,e,f;
    cout<<" 1 st ==>> ";
    cin>>a;
    cout<<" 2 st ==>> ";
    cin>>b;
    c=a+b;
    d=a-b;
    e=a*b;
    f=a/b;
    cout<<" result for +  ==>> "<<c<<endl;
    cout<<" result for -  ==>> "<<d<<endl;
    cout<<" result for *  ==>> "<<e<<endl;
    cout<<" result for /  ==>> "<<f<<endl;
    getch();
    return 0;

}




0 Comments

Post a Comment

Copyright © 2009 ~ ♥ ရည္ညႊန္းရာ ♥ ~ All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.