C++ Simple Programs for Beginners | C++ programming Examples

1.     Write a program to print “Welcome to C++”.




Output



2.  Write a program to add two numbers.




Output



3. Write a program to swap two numbers.




Output





4. Write a program to check whether a number is even or odd.



Output




5. Write a program to check whether a year is leap year or not.




Output



6. Write a C program to check whether a character is vowel or not using switch case.




Output









Post a Comment

0 Comments