Search
 
SCRIPT & CODE EXAMPLE
 

CPP

C++ influenced

#include<iostream>
using namespace std;
int main(){
 cout<<"helo world"; 
}
Comment

c++ influenced

#include <iostream>

using namespace std;

int main(){
    
    cout<<"start of program"<<endl;
    
    int m=0;
    char r;
    string sname;
    
    cout<<"
 
 
__________________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<<"
1:-mashine language is the combination of 0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='t' || r=='T' ) {  
      cout<<"	your answer is correct";
      m+=10;
      cout<<"  	   total marks ="<<m;
    
 }else{
      cout<<" 	your answer is in correct";
      m+=0;
      cout<<"  	   total marks ="<<m;
}

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

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

 
 
 
} 
  
Comment

C++ influenced

#include<iostream>
using namespacee std;
int main(){
  cout<<"***helo word***";
}
Comment

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++;
      }
  
  
  
        
}


Comment

C++ influenced

#include <iostream>

using namespace std;

int main(){
    
    cout<<"start of program"<<endl;
    
    int m=0;
    char r;
    string sname;
    
    cout<<"
 
 
__________________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<<"
1:-mashine language is the combination of 0 & 1 [T/F]...";
    cin>>r;
    
  if(r=='t' || r=='T' ) {  
      cout<<"	your answer is correct";
      m+=10;
      cout<<"  	    total marks ="<<m;
    
 }else{
      cout<<" 	your answer is in correct";
      m+=0;
      cout<<"  	   total marks ="<<m;
}

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

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

 
 
 
} 
Comment

PREVIOUS NEXT
Code Example
Cpp :: 2927260.eps 2927262.jpg 2927263.ai License free.txt License premium.txt 
Cpp :: no match for ‘operator=’ (operand types are ‘std::basic_ostream’ and ‘int’) 
Cpp :: how to implement binders and decorators on c++ lik python? 
Cpp :: how to shorten code using using c++ in class with typename 
C :: colourful text in c 
C :: c bold text 
C :: clear screen c 
C :: myFgets in c 
C :: factorial in c 
C :: how to print something out to the console c 
C :: space after format specifiers in c 
C :: C hello workld 
C :: Numeri in ordine crescente C 
C :: lerp function c 
C :: is it possible to access argv in function 
C :: how to genrate a random number in C 
C :: print 0 1 2 3 4 in c 
C :: console log observable data 
C :: how to empty string in c 
C :: c binary search 
C :: what is system function in c 
C :: how to scanf two dimensional array in c 
C :: toupper function in c 
C :: how to get input in 2d array in c 
C :: c read file content 
C :: why there is return 0 used in c 
C :: how to make a check bigger 
C :: print to console in c 
C :: recursive in c 
C :: pyinstaller hidden import tensorflow not found 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =