Tuesday 25 October 2016
Friday 21 October 2016
FIND SMALLEST NUMBER IN C++ WITH BLOGGING
#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<"enter 3 numbers"<<endl;
cin>>a>>b>>c;
if(a<b && a<c)
{
if(b<a && b<a)
cout<<"smallest number is:"<<b<<endl;
else
cout<<"smallest number is:"<<a<<endl;
}
else
cout<<"smallest number is:"<<c<<endl;
system("pause");
return 0;
https://mainadilsahu.blogspot.com/
using namespace std;
int main()
{
int a,b,c;
cout<<"enter 3 numbers"<<endl;
cin>>a>>b>>c;
if(a<b && a<c)
{
if(b<a && b<a)
cout<<"smallest number is:"<<b<<endl;
else
cout<<"smallest number is:"<<a<<endl;
}
else
cout<<"smallest number is:"<<c<<endl;
system("pause");
return 0;
https://mainadilsahu.blogspot.com/
Thursday 20 October 2016
Wednesday 19 October 2016
Program for finding average in C++ with blogging
#include<iostream>
using namespace std;
int main()
{
int a,b,c;
float avg;
cout<<"Enter a value 1:";
cin>>a;
cout<<"Enter a 2nd value:";
cin>>b;
cout<<"Enter a third value:";
cin>>c;
avg=a+b+c/3.0;
cout<<avg;
return 0;
}
https://mainadilsahu.blogspot.com/ plz join this link
using namespace std;
int main()
{
int a,b,c;
float avg;
cout<<"Enter a value 1:";
cin>>a;
cout<<"Enter a 2nd value:";
cin>>b;
cout<<"Enter a third value:";
cin>>c;
avg=a+b+c/3.0;
cout<<avg;
return 0;
}
https://mainadilsahu.blogspot.com/ plz join this link
Computer Programming with fun: Basics of C++ Programming in best way with bloggin...
Computer Programming with fun: Basics of C++ Programming in best way with bloggin...: please open this video and learn some programming rules and concept of programming!!!!!!!!!!!! and join my blog https://mainadilsa...
Basics of C++ Programming in best way with blogging
please open this video and learn some programming rules and concept of programming!!!!!!!!!!!!
and join my blog https://mainadilsahu.blogspot.com/
thanks
Tuesday 18 October 2016
Follow me for programming with blogging
Hi friends !!!!!! first i tell you what is programming ?
so follow my link http://mainadilsahu.blogspot.com/ thanks for joining and follow me fast and give me your feed back !!!!!!!! with blogging,,,,,,,,
Marks greater than 60
#include <iostream>
using namespace std;
int main()
{
int marks;
cout<<"Enter you marks:";
cin>>marks;
if(marks>=60)
{
cout<<"You have passed";
}
else
cout<<"Fail";
return 0;
}
using namespace std;
int main()
{
int marks;
cout<<"Enter you marks:";
cin>>marks;
if(marks>=60)
{
cout<<"You have passed";
}
else
cout<<"Fail";
return 0;
}
programe for show the gender in c++ using switch
#include<iostream>
using namespace std;
int main()
{
char gender;
cout<<"Enter your gender";
cin>>gender;
switch(gender)
{
case'f':
cout<<"The person is female";
break;
case'F':
cout<<"The Person is female";
break;
case'm':
cout<<"The person is male";
break;
case'M':
cout<<"The person is male";
break;
default:
cout<<"None";
}
return 0;
}
using namespace std;
int main()
{
char gender;
cout<<"Enter your gender";
cin>>gender;
switch(gender)
{
case'f':
cout<<"The person is female";
break;
case'F':
cout<<"The Person is female";
break;
case'm':
cout<<"The person is male";
break;
case'M':
cout<<"The person is male";
break;
default:
cout<<"None";
}
return 0;
}
Subscribe to:
Posts (Atom)