Selamat Datang di blogku..blognya sang penuntut ilmu :D

Sabtu, 06 Juni 2020

PROGRAM KALKULATOR INCREMENT DECREMENT ALFIAN

#include<stdio.h>

main()
{
printf("===============================================\n");
printf("=PROGRAM KALKULATOR INCREMENT DECREMENT ALFIAN=\n");
printf("===============================================\n");
int x,y;
printf("input number 1=");
scanf("%i",&x);
printf("===PRE===\n");
printf("result INCREMENT= %i\n",++x);//a
printf("result DECREMENT = %i\n",--x);//b
printf("===POST===\n");
printf("resultINCREMENTn= %i\n",x++);//nilaib tetap, nilai sebenarnya di save memory, 
printf("resultDECREMENTn= %i\n",x--);//nilai memory tetap, nilai sebenarnya save momory

}
/*
#include <stdio.h>
int main()
{
int x, y;
x=5;
printf("x = %d\n", x);//gives defined value of x
printf("x = %d\n", x++);//gives x =5 but only for display, actual value stored in memory is 6.
printf("x = %d\n", x);//gives x = 6 for display but actual value stored in memory is 5
printf("x = %d\n", --x);//gives x = 4 due to prefix properties
printf("x = %d\n", ++x);//gives x =5 due to the same
}

*/

Tidak ada komentar:

Posting Komentar

kewajiban anak terhadap ibu bapak

kewajiban anak terhadap ibu bapak

kewajiban anak terhadap ibu bapak :

1.tidak berkata ah, / kasar , memahari tapi sebaliknya menyayangi
2.mendokan diwktu solat , wajib
3.memberikan hasil kerja keras semampunya, yang terbaik

Kode Kesalahan BBR00Q2 User ID terblokir bri

 caranya:   saat login klik lupa password   masuk ke email   dan masukan passord baru   selesai