Computer Science, asked by QueenSaanvi, 1 month ago

please answer the questions

please mod and stars or any computer master plz​

Attachments:

Answers

Answered by anindyaadhikari13
5

\texttt{\textsf{\large{\underline{Solution}:}}}

Corrected co‎des -

a)

#include <iostream>

using namespace std;

int main(){

   int x=50,y=0;

   if(x>=45 && x<=55)

       y=x;

   cout<<y;

   return 0;

}

Output: 50

\rule{300}{2}

b)

#include <iostream>

using namespace std;

int main(){

   int Comp=77;

   int S_Science=90;

   cout<<Comp;

   cout<<S_Science;

   return 0;

}

Output: 7790

\rule{300}{2}

c)

#include <iostream>

using namespace std;

int main(){

   int e=144;

   int f=100;

   int g=30;

   int h=e*f/g;

   cout<<h;

   return 0;

}

Output: 480

\rule{300}{2}

d)

#include <iostream>

using namespace std;

int main(){

   cout<<"CPP Programming";

   return 0;

}

Output: CPP Programming

Similar questions