Answer to Question #161868 in C++ for Shaquilla C Cameron

Question #161868

Write an expression that prints "Special number" if specialNum is 0, -99, or 44.


1
Expert's answer
2021-02-07T16:50:47-0500
#include<iostream>
using namespace std;
int main(){
    cout<<"special"<<endl;
    for(int i=-100;i<=100;++i){
        if(i%11==0){
        
        cout<<i<<endl;
        }
    
    
    }



return 0;}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog