// C Program which explaining Shorthand Notations.
#include<conio.h>
#include<stdio.h>
void main()
{
int i;
clrscr();
printf("Enter the value of i:");
scanf("%d",&i);
i += 5;
printf("\n i = %d",i);
i -=5;
printf("\n i = %d",i);
i *=5;
printf("\n i = %d",i);
i /=5;
printf("\n i = %d",i);
i %=5;
printf("\n i = %d",i);
getch();
}
OUTPUT:
Enter the value of i: 4
i = 9
i = 4
i = 20
i = 4
i = 4
#include<conio.h>
#include<stdio.h>
void main()
{
int i;
clrscr();
printf("Enter the value of i:");
scanf("%d",&i);
i += 5;
printf("\n i = %d",i);
i -=5;
printf("\n i = %d",i);
i *=5;
printf("\n i = %d",i);
i /=5;
printf("\n i = %d",i);
i %=5;
printf("\n i = %d",i);
getch();
}
OUTPUT:
Enter the value of i: 4
i = 9
i = 4
i = 20
i = 4
i = 4
No comments:
Post a Comment