#include<stdio.h>
int main() {
int n,flip;
scanf("%d",&n);
flip=~n;
printf("Flipped Number is %d\n",flip);
return 0;
}
Input
5
Output
Flipped Number is -6
int main() {
int n,flip;
scanf("%d",&n);
flip=~n;
printf("Flipped Number is %d\n",flip);
return 0;
}
Input
5
Output
Flipped Number is -6
No comments:
Post a Comment