Softech
Sunday, April 12, 2020
Basic Structure of C++
This is the basic structure of C++ program
#include<
iostream
>
using namespace
std
;
void main()
{
system("pause");
}
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
Maximum No
//Find the Maximum No between Three Nos' int i=10,o=20,k=30; if(i>o &&i>k) { cout<<"1st is g\n";...
If and If else statement
Syntax of If and If-Else Statement: if statement is used to decide whether the body is going to execute or not. If our conditio...
Leap year
//Check whether is year is leap or not int year=2020; if(year%4==0) { cout<<"leap\n"; } else { cout<...
Check small and Capital letter
//Check whether the Character is small Or capital Alphabet char ch='A'; if(ch>='A'&&ch<='Z') { ...
No comments:
Post a Comment