#include<iostream>
using namespace std;
int main(){
cout<<"helo world";
}
#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";
}
}
#include<iostream>
using namespacee std;
int main(){
cout<<"***helo word***";
}
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++;
}
}
#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";
}
}