0
C++ for 1st year
Posted by ေမၿမဳိ့သား
on
7:07 AM
in
C++ for 1st year
လုပ္ ထားတာ ၿဖစ္ပါသည္ဗ်ာ။
#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;
}
Post a Comment