Professional Documents
Culture Documents
Prakt Rabu 1
Prakt Rabu 1
#include <stdio.h>
#include <stdlib.h>
int main()
return 0;
Output
Kesimpulan
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
__________________________________________________
#include <stdio.h>
#include <stdlib.h>
int main()
bil3=bil1+bil2;
return 0;
}
Output
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
__________________________________________________
3.
#include <stdio.h>
#include <stdlib.h>
main()
int a,b,c;
scanf("%d", &a);
scanf("%d", &b);
c = a+b;
return 0;
Output
Kesimpulan
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
#include <stdio.h>
____________________________________________________________________________________
__________________________________________________
#include <stdlib.h>
main()
{
4.
Output
Kesimpulan
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
__________________________________________________
5.
#include <stdio.h>
#include <stdlib.h>
main()
scanf("%f", &bil1);
bil2 = bil1;
return 0;
}
Output
Kesimpulan
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
__________________________________________________
6. #include <stdio.h>
#include <stdlib.h>
int main()
int bil1;
char ch1;
scanf("%d", &bil1);
fflush(stdin);
scanf("%c", &ch1);
return 0;
Output
Kesimpulan
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
__________________________________________________