C program for Assignment Operator:
#include<stdio.h>
#include<conio.h>
main()
{
int a=10;
clrscr();
printf("\n a+=10=> %d",a+=10);
printf("\n a-=10=> %d",a-=10);
printf("\n a*=10=> %d",a*=10);
printf("\n a/=10=> %d",a/=10);
printf("\n a%=10=> %d",a%=10);
getch();
}
#include<stdio.h>
#include<conio.h>
main()
{
int a=10;
clrscr();
printf("\n a+=10=> %d",a+=10);
printf("\n a-=10=> %d",a-=10);
printf("\n a*=10=> %d",a*=10);
printf("\n a/=10=> %d",a/=10);
printf("\n a%=10=> %d",a%=10);
getch();
}
No comments:
Post a Comment