G’ulomjonov Shohruzbek 913_21-gurux
7- LABORATORIYA ISHI.
Sonli sinflar bilan ishlash. Ifodani sintaksis tahlil qilish
Complex sinfidan foydalanib, ikkita kompleks sonlarni ko’paytiring.
#include
#include
using namespace std;
int main () {
complexa(5,4);
complexb(4,5);
complexc=(a*b);
cout< Ikki son yig’indisi
#include
#include
using namespace std;
int main()
{
complexa(3,1);
complexb(2,2);
complexc=a+b;
cout<}
Ikki son ayirmasi
#include
#include
using namespace std;
int main()
{
complexa(14,8);
complexb(4,1);
complexc=a-b;
cout<}
Do'stlaringiz bilan baham: |