Program in C to demonstrate use of increment and decrement operators
#include <stdio.h>
void main ()
{
int a,b;
clrscr();
printf ("Enter A: ");
scanf ("%d",&a);
printf ("Enter B: ");
scanf ("%d",&b);
a++;
b--;
printf ("\nA is %d",a);
printf ("\nB is %d",b);
getch ();
}
Post a Comment