تبلیغات
دنیای کامپیوتر ++c - برنامه ای بنوسید کامپیوتر یک کارگتر و دو عدد از ورودی دریافت کرده و موارد زیر را برسی کند؟
دنیای کامپیوتر ++c

برنامه ای بنوسید کامپیوتر یک کارگتر و دو عدد از ورودی دریافت کرده و موارد زیر را برسی کند؟

شنبه 25 اردیبهشت 1389


اگر کارکتر +دو عدد ورودی را جمع کند؟
اگر کارکتر *دو عدد ورودی را ضرب کند؟
اگر کارکتر -دو عدد ورودی را کم کند؟
اگر کارکتر /دو عدد ورودی را تقسیم کند؟
#include<iostream.h>
#include<conio.h>
int main()
{
float a,b,c;
char k;
cout<<"enter a";
   cin>> a;
cout<<"enter b";
   cin>>b;
cout<<"enter character for operation:";
   cin>>k;
switch(k)
{
case'+'c=a+b;
cout>>c;
break;
case'*'c=a*b;
cout>>c;
break;
case'-'c=a-b;
cout>>c;
break;
case'/'c=a/b;
cout>>c;
break;
default:cout<<"invalid symbol";
}
getch();
return 0;


}


What is the tendon at the back of your ankle?
جمعه 13 مرداد 1396 07:02 ق.ظ
After I initially left a comment I appear to have clicked the
-Notify me when new comments are added- checkbox and now whenever a
comment is added I receive four emails with the exact same comment.
There has to be an easy method you are able to remove me from that service?
Thank you!
Can you grow taller with exercise?
جمعه 6 مرداد 1396 06:04 ب.ظ
Do you mind if I quote a few of your posts as long as I provide credit and sources back to your
website? My website is in the exact same niche as yours and my users would genuinely benefit from a lot of the information you provide here.
Please let me know if this alright with you. Thanks a lot!
foot pain graph
شنبه 17 تیر 1396 02:54 ب.ظ
Loving the info on this web site, you have done outstanding
job on the posts.
thedaflorencio.weebly.com
چهارشنبه 3 خرداد 1396 07:38 ب.ظ
This info is invaluable. How can I find out more?
BHW
چهارشنبه 6 اردیبهشت 1396 06:53 ب.ظ
Hello, i feel that i saw you visited my web site so i
came to return the prefer?.I am trying to in finding things to enhance my
web site!I guess its ok to use a few of your ideas!!
BHW
شنبه 2 اردیبهشت 1396 04:22 ب.ظ
Link exchange is nothing else but it is just placing the other person's webpage link
on your page at appropriate place and other person will
also do same in favor of you.
BHW
سه شنبه 29 فروردین 1396 08:10 ب.ظ
I'm really enjoying the theme/design of your site.

Do you ever run into any browser compatibility issues?
A handful of my blog audience have complained about my site not working correctly
in Explorer but looks great in Chrome. Do you have any solutions to help fix this issue?
BHW
سه شنبه 29 فروردین 1396 05:19 ب.ظ
No matter if some one searches for his necessary thing,
therefore he/she wants to be available that in detail,
thus that thing is maintained over here.
BHW
چهارشنبه 23 فروردین 1396 09:40 ب.ظ
Attractive section of content. I just stumbled upon your web site and in accession capital to assert that I acquire actually enjoyed account your
blog posts. Any way I will be subscribing
to your feeds and even I achievement you access consistently rapidly.
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر


فهرست وبلاگ
پیوندهای روزانه
آرشیو
نویسندگان
آمار وبلاگ
  • کل بازدید :
  • بازدید امروز :
  • بازدید دیروز :
  • بازدید این ماه :
  • بازدید ماه قبل :
  • تعداد نویسندگان :
  • تعداد کل پست ها :
  • آخرین بازدید :
  • آخرین بروز رسانی :
جستجو
آخرین پستها