Tugas Pertemuan 3 Algoritma dan Struktur Data
ASSALAMAUALAIKUM WR WB Nama : Raihan Fajarahmatan Nim : 3420210010 Teknik Informatika TUGAS 1 #include <stdio.h> #include <conio.h> #include <iostream.h> //Nama : Raihan Fajarahmatan //NIM : 3420210010 //Prodi : Teknik Informatika void main() { int x,y; int a,b,c,d; clrscr(); cout<<"Masukan Nilai A: "; cin>>x; cout<<"Masukan Nilai B: "; scanf("%d",&y); /*Left Value Operator Right Value*/ /*=========================================================*/ a = x+y; c = x%y; b = x-y; d = x*y; /*=========================================================*/ cout<<endl<<endl; printf("Hasil dari A = X+Y= %i \n",a); printf("Hasil dari B = X-Y= %i \n",b); cou