Answers for "C++ influenced"

C++
0

C++ influenced

#include<iostream>
using namespace std;
int main(){
 cout<<"helo world"; 
}
Posted by: Guest on April-30-2022
0

c++ influenced

helo friends  
my name is  mohan maheen
my age is 13 year old
*********************
#include <iostream>

using namespace std;

int main(){
    
    cout<<"start of program"<<endl;
    
    int m=0;
    char r;
    string sname;
    
    cout<<"\n \n \n__________________online quiz________________"<<endl;
    
    cout<<"enter your sname...";
    cin>>sname;
    
    cout<<"if the statement is true  ,mark it(T)if it the false mark it(F)"<<endl;
    
    cout<<"*****************************************************************"<<endl;
    // qquestion 1
    cout<<"\n1:-mashine language is the combination of 0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='t' || r=='T' ) {  
      cout<<"\tyour answer is correct";
      m+=10;
      cout<<"  \t   total marks ="<<m;
    
 }else{
      cout<<" \tyour answer is in correct";
      m+=0;
      cout<<"  \t   total marks ="<<m;
}

   // question 2
    cout<<"\n2:-computer is a mashine usse only  ghygraps 0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='f' || r=='F' ) {  
      cout<<"\tyour answer is correct";
      m+=10;
      cout<<"  \t    total marks ="<<m;
    
 }else{
      cout<<"\tyour answer is in correct";
      m+=0;
      cout<<"\t     total marks ="<<m;
      
    
}

// question 3
    cout<<"\n3:-java and C++ in same language 0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='f' || r=='F' ) {  
      cout<<"\tyour answer is correct";
      m+=10;
      cout<<" \t     total marks ="<<m;
    
 }else{
      cout<<"\tyour answer is in correct";
      m+=0;
      cout<<" \t    total marks ="<<m;
      
 }   
//question 4
    cout<<"\n4:-window as an oppreating system  0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='t' || r=='T' ) {  
      cout<<" \tyour answer is correct";
      m+=10;
      cout<<"  \t    total marks ="<<m;
    
 }else{
      cout<<"\tyour answer is in correct";
      m+=0;
      cout<<" \t    total marks ="<<m;
      
    
 
}   
//question 5
    cout<<"\n5:-you can make games both  by java and c++  0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='t' || r=='T' ) {  
      cout<<"\tyour answer is correct";
      m+=10;
      cout<<"  \t   total marks ="<<m;
    
 }else{
      cout<<" \tyour answer is in correct";
      m+=0;
      cout<<"  \t   total marks ="<<m<<endl;
      
 }    
 if(m==50){
     cout<<"\ncongratulation !!!your answer all is correctly";
 }

 
 
 
}
Posted by: Guest on May-05-2022
-1

C++ influenced

#include<iostream>
using namespacee std;
int main(){
  cout<<"***helo word***";
}
Posted by: Guest on April-29-2022
-1

C++ influenced

c++***parttens;
my name is maheen 
my age is 13 years old
*********************************
#include<iostream>
using namespace std;
int main(){
   int n=5;
   cout<<"enetr a number to draw a dimond...";
   cin>>n;
   int space=n-0;
       
       for(int i=0.i<n;i++){
          
            for(int j=0;j<space;j++){
              cout<<" ";
            }
               for(int j=0;j<=i;j++){
                 cout<<"* ";
               }     
         cout<<endl;
         space--;     
       }
  space=0;
      
      for(int i=n;i>0;i--){
       
         for(int j=0;j<space;j++){
            cout<<" "; 
         }
           for(int j=0;j<i;j++){
            cout<<"* ";    
         }
         cout<<endl;
         space++;
      }
  
  
  
        
}
Posted by: Guest on April-29-2022
-1

C++ influenced

#include <iostream>

using namespace std;

int main(){
    
    cout<<"start of program"<<endl;
    
    int m=0;
    char r;
    string sname;
    
    cout<<"\n \n \n__________________online quiz________________"<<endl;
    
    cout<<"enter your sname...";
    cin>>sname;
    
    cout<<"if the statement is true  ,mark it(T)if it the false mark it(F)"<<endl;
    
    cout<<"*****************************************************************"<<endl;
    // qquestion 1
    cout<<"\n1:-mashine language is the combination of 0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='t' || r=='T' ) {  
      cout<<"\tyour answer is correct";
      m+=10;
      cout<<"  \t    total marks ="<<m;
    
 }else{
      cout<<" \tyour answer is in correct";
      m+=0;
      cout<<"  \t   total marks ="<<m;
}

   // question 2
    cout<<"\n2:-computer is a mashine usse only  ghygraps 0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='f' || r=='F' ) {  
      cout<<"\tyour answer is correct";
      m+=10;
      cout<<"  \t    total marks ="<<m;
    
 }else{
      cout<<"\tyour answer is in correct";
      m+=0;
      cout<<"\t     total marks ="<<m;
      
    
}

// question 3
    cout<<"\n3:-java and C++ in same language 0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='f' || r=='F' ) {  
      cout<<"\tyour answer is correct";
      m+=10;
      cout<<" \t     total marks ="<<m;
    
 }else{
      cout<<"\tyour answer is in correct";
      m+=0;
      cout<<" \t    total marks ="<<m;
      
 }   
//question 4
    cout<<"\n4:-window as an oppreating system  0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='t' || r=='T' ) {  
      cout<<" \tyour answer is correct";
      m+=10;
      cout<<"  \t    total marks ="<<m;
    
 }else{
      cout<<"\tyour answer is in correct";
      m+=0;
      cout<<" \t    total marks ="<<m;
      
    
 
}   
//question 5
    cout<<"\n5:-you can make games both  by java and c++  0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='t' || r=='T' ) {  
      cout<<"\tyour answer is correct";
      m+=10;
      cout<<"  \t   total marks ="<<m;
    
 }else{
      cout<<" \tyour answer is in correct";
      m+=0;
      cout<<"  \t   total marks ="<<m<<endl;
      
 }    
 if(m==50){
     cout<<"\ncongratulation !!!your answer all is correctly";
 }

 
 
 
}
Posted by: Guest on April-30-2022

Browse Popular Code Answers by Language