New course! Every coder should learn Generative AI!
Try a free lesson+ 2
How can I get the complement of a number in C++?
3 Answers
+ 8
int x;
cin >> x;
cout << 90 - x
+ 5
int x = 42;
int compliment = 90-x
+ 2
I mean the complement of a number tht is entered by the user