Answers:
Assignments are for self practice. No need to submit.
#include<iostream>
using namespace std;
int main()
{
cout <<" Name : sampada"\n;
cout<<"city:nanded\n";
return 0;
}
#include<iostream>
Using namespace std;
Int main()
{
cout<<"Name : shruti"\n;
cout<<"city name: nanded"\n;
return 0;
}
#include<iostream>
Using namespace std;
Int main()
{
cout<<"\nName : Harshad";
cout<<"\ncity : Nanded":
return 0;
}
And the o/p will be as follows
Name : Harshad
city : Nanded
#include<ionstream>
using namespace std;
int main()
{
count<<"/nName : SUSHANT";
count<<"/nCity : NANDED";
return 0;
}
output of the following program will be,
Name : SUSHANT
City : NANDED
#include<iostream>
using namespace std;
int main ()
{
cout<<"\nName : Pranita";
cout<<"\nCity : Nanded";
return 0;
}
Output of the program
Name : Pranita
City : Nanded
#include<iostream>
using namespace std;
int main()
{
cout<<"/n Name: Sakshi";
cout<<"/n City: Nanded";
return 0;
}
Output of the program as follow
Name: Sakshi
City: Nanded
//Assignment 2
//My first c++ program
#include<iostream>
using namespace std;
int main ()
{
cout<<"Name=Kirtana\n";
cout <<"City=Nanded\n";
return 0;
}
Output of this following program will be
Name=Kirtana
City= Nanded
#include <iostream>
using namespace std;
int main()
{
cout <<"Name:Vaishnavi\n";
cout <<"City:Nanded\n";
return 0;
}
Output of this program will be
Name:Vaishnavi
City:Nanded
#include <iostream>
using namespace std;
int main()
{
cout<<"Name : Sneha\n";
cout<< "City:Nanded \n";
return 0;
}
Output of this program will be
Name :Sneha
City : Nanded
#include<iostream>
Using namespace std;
Int main()
{
Cout<<"/nName: Mohit";
Cout<<"/nCity: Nanded";
Return 0;
}
And the o/p will be as follows
Name: Mohit
City: Nanded
#include<iostream>
Using namespace std;
int main()
{
Cout<<"Name=Anjali\n";
Cout<<"City=Nanded\n";
return 0;
}
Output of this following program will be
Name=Anjali
City=Nanded.
#include <iostream>
Using namespace std ;
int main()
{
cout<<"/nName: Gayatri";
cout << "/ncity: Nanded";
Return 0;
}
the output is
Name: Gayatri
City: Nanded
<hr>
#include<iostream>
Using namespace std;
Int main()
{
cout<<"\nName : SAKSHI";
cout<<"\nCity : PUSAD":
return 0;
}
And the o/p will be as follows
Name : SAKSHI
City : PUSAD
<hr>
#include<iostream>
Using namespace std;
Int main()
{
cout<<"\nName : SAHEBRAO";
cout<<"\nCity : NANDED":
return 0;
}
And the o/p will be as follows
Name : SAHEBRAO
City : NANDED
#include<iostream>
using namespace std;
int main()
{
Cout<<"name: siddeshwar"<<stdl<<"city: Parbhani"<<stdl;
return 0;
}
#include<iostream>
using namespace std;
int main ()
{
cout<<"\nName : nita";
cout<<"\nCity : Nanded";
return 0;
}
Output of the program
Name : nita
City : Nanded
#include<iostream>
Using namespace std;
Int main()
{
cout<<"\nName : SAMIKSHA";
cout<<"\nCity : HINGOLI";
return 0;
}
The o/p will be as follows
Name : SAMIKSHA
City : HINGOLI
#include <iostream>
Using namespace std ;
int main()
{
cout<<"/nName:Akanksha";
cout << "/ncity: Nanded";
Return 0;
}
the o/p will be
Name: Akanksha
City: Nanded
#include<iostream>
using namespace std;
int main()
{
cout<<"/n name : manas";
cout<<"/n city : nanded";
return 0;
}
output
//name : manas
city : nanded
#include<iostream>
using namespace std;
int main()
{
cout<<"/n name : Pooja";
cout<<"/n city : Kandhar";
return 0;
}
output
//*name : Pooja
city : Kandhar*//
#include<iostream>
Using namespace std;
Int main()
{
cout<<"\nName : KABIR";
cout<<"\ncity : Nanded":
return 0;
}
And the o/p will be as follows
Name : KABIR
city : Nanded
#include<ionstream>
using namespace std;
int main()
{
count<<"/nName :ANIKET";
count<<"/nCity : NANDED";
return 0;
}
output of the following program will be,
Name : ANIKET
City : NANDED
#include<ionstream>
using namespace std;
int main()
{
count<<"/nName : TEJAS";
count<<"/nCity : NANDED";
return 0;
}
output of the following program will be,
Name : TEJAS
City : NANDED
#include<iostream>
using namespace std;
int main ()
{
cout<<"\nName : ABHISHEK";
cout<<"\nCity : Nanded";
return 0;
}
Output of the program
Name : ABHISHEK
City : Nanded
#include<iostream>
using namespace std;
int main()
{
cout<<"/n Name: PRANAV";
cout<<"/n City: Nanded";
return 0;
}
Output of the program as follow
Name: PRANAV
City: Nanded
#include<iostream>
using namespace std;
int main()
{
cout<<"/n Name:Mohit";
cout<<"/n City: Nanded";
return 0;
}
Output of the program as follow
Name: Mohit
City: Nanded
#include<ionstream>
using namespace std;
int main()
{
count<<"/nName : Kankshith";
count<<"/nCity : Adilabad";
return 0;
}
output of the following program will be,
Name : Kankshith
City : Adilabad
#include<iostream>
Using namespace std;
Int main()
{
cout<<"\nName : Akash";
cout<<"\ncity : Nanded":
return 0;
}
And the o/p will be as follows
Name : Akash
City : Nanded
<hr>
# include < iostream>
using namespace std;
int main()
{
cout<<"\nName:Shivani ";
cout<<" \nCity: Nanded ";
return 0;
}
output :
Name: Shivani
City :Nanded
#include<iostream>
using namespace std;
int main ()
{
cout<<"\n Name:Ranuka";
cout<<"\n City:Nanded";
return 0;
}
Output as follows
Name:Renuka
City:Nanded
// assignment 2
#include<iostream.h>
Using namespace std;
Int main()
{
cout<<endl<<"Name : Yash";
cout<<endl<<"City : Nanded";
return 0;
}
************Output*************
/*
Name : Yash
City : Nanded */
#include<ionstream>
using namespace std;
int main()
{
count<<"/nName : VAIBHAV";
count<<"/nCity : NANDED";
return 0;
}
output of the following program will be,
Name : VAIBHAV
<span style="-webkit-text-size-adjust: 100%;"> City : NANDED</span>
<span style="-webkit-text-size-adjust: 100%;">
</span>
</span>
#include<iostream>
using namespace std;
int main ()
{
cout<<"\nName : Swaraj";
cout<<"\nCity : Kolhapur";
return 0;
}
/*Output*/
Name : Swaraj
City : Kolhapur
#include<iostream>
using namespace std;
int main ()
{
cout<<"\nName : SHARDA MEGHWAL";
cout<<"\nCity : GURGAON";
return 0;
}
/*program to print your name
and city*/
#include <iostream>
using namespace std;
int main()
{
cout<<"my name: Vaishnavi\n";
cout<<"city: Chandrapur\n";
return 0;
}
output:
my name: Vaishnavi
city: Chandrapur
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Tanusha";
cout<<"Eluru";
return 0;
}
#include<iostream>
using namespace std;
int mian()
{
cout<<"my name: Neeharika\n";
cout<<"city: Macherla\n";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"My name is Gowthami";
cout<<"City:Bezawada";
return 0;
}
output:
My name is Gowthami
City:Bezawada
/* c program to print your name
city */
#include<iostream>
using namespace std;
int main()
{
cout<<"My name is Gowthami";
cout<<"City:Bezawada";
return 0;
}
output:
My name is Gowthami
City:Bezawada
/* c program to print your name
city */
#include<iostream>
using namespace std;
int main()
{
cout << " Name : Fathima marzooka\n";
cout << "City: Nanded";
return 0;
}
#include<iostrem>
using namespace std;
int main()
{
cout<<"I am Ajay";
cout<<"/nI am doing my under-graduation course in Dhanekula";
return 0;
}
Output:
I am Ajay
I am doing my under-graduation course in Dhanekula
#include<iostream>
using namespace std;
int main()
{
count<<"gayathri";
count<<"vijayawada";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"i am tanmayi";
cout<<"\nI am doing my under-graduation course in Dhanekula";
return 0;
}
Output:
I am tanmayi
i am doing my under-graduation course in Dhanekula
#include<iostream>
using namespace std;
int main()
{
cout<<"my name: shalini\n";
cout<<"city: vijayawada\n";
return 0;
}
/* program to print name and
city */
#include<iostream>using namespace std;
int main()
{
cout<<"Name:Shaheen";
cout<<"City:Vijayawada";
return 0;
}
output
Name:Shaheen
City:Vijayawada
*/program to print name and city */
#include<iostream>
using namespace std;
int main()
{
cout<<"Name:Rehmat";
cout<<"City:Vijayawada";
return 0;
}
*/program to print name
and city */
#include<iostream>
using namespace std;
int main()
{
cout<<"Name:Lamees";
cout<<"City:Vuyyuru";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout<<"Name:vennela";
cout<<"City:vijayawada";
return 0;
}
output:
Name:vennela
City:vijayawada
#include<iostream>
using namespace std;
int main()
{
cout<<"Name:Naseema";
cout<<"City:Vijayawada";
return 0;
}
output:
Name:Naseema
City:Vijayawada
#include<iostream>
using namespace std;
int main()
{
cout<<"Name:Nasreen";
cout<<"City:Vijayawada";
return 0;
}
output:
Name:Nasreen
City:Vijayawada
*/program to print name
and city */
#include<iostream>
using namespace std;
int main()
{
cout<<"Name:Saniya";
cout<<"City: Vijayawada";
return 0;
}
Output:
Name:Saniya
City: Vijayawada
Login to add comment