C program to check whether a number entered by user is even or odd.
#include <stdio.h>
int main(){
int num;
...
C++ Program to calculate simple interest.
C++ Program to calculate simple interest.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float a,b,c,d,e;
cout<<"Enter...
C++ Program to check if a year is a leap year.
C++ Program to check if a year is a leap year.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"Enter...
C++ Program to square an even number or cube an odd number.
C++ Program to square an even number or cube an odd number.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int...
C++ Program to add 2 numbers and tell if it's odd/even.
C++ Program to add 2 numbers and tell if it's odd/even.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
...
C++ Program to swap values of two variable without using third.
C++ Program to swap values of two variable without using third.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
...
C++ Program to display the sum of this series: 1+1/2+1/3....1/n.
C++ Program to display the sum of this series: 1+1/2+1/3....1/n.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
...
C++ Program to enter an amount and display no. of Rs.500,100,50,20,10,5,1 notes.
C++ Program to enter an amount and display no. of Rs.500,100,50,20,10,5,1 notes.
#include<iostream.h>
#include<conio.h>
void main()
{
...
C++ Program to print your name 10 times using while loop.
C++ Program to print your name 10 times using while loop.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a=1;
...
C++ Program to enter 'n' numbers and display no. of odd, even and numbers entered till user wishes.
C++ Program to enter 'n' numbers and display no. of odd, even and numbers entered till user wishes.
#include<iostream.h>
#include<conio.h>
void...
C++ Program to calculate a^b.
C++ Program to calculate a^b.
#include<iostream.h>
#include<conio.h>
int pwr(int,int);
void main()
{
clrscr();
int a,d;
cout<<"Enter...
C++ Program to display prime numbers upto n.
C++ Program to display prime numbers upto n.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,z;
cout<<"Enter...
C++ Program to display first n terms of fibonacci series.
C++ Program to display first n terms of fibonacci series.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
long a,b=0,c=1,d=1;
...
C++ Program to display a number's digits reversed.
C++ Program to display a number's digits reversed.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a;
cout<<"Enter...
C++ Program to display the sum of a number's digits.
C++ Program to display the sum of a number's digits.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
...
Program to display the following pattern: 1 12 123 1234 12345
Write a C++ Program to Display the Following Pattern.
/* Program to display the following pattern:
1
12
123
1234
12345
*/
#include<iostream.h>
#include<conio.h>
void...
Program to display the following pattern: * ** *** **** *****
Write a C++ Program to Display the Following Pattern.
/* Program to display the following pattern:
*
**
***
****
*****
*/
#include<iostream.h>
#include<conio.h>
void...
Program to display the following pattern: ********** ********** **********
Write a C++ Program to Display the Following Pattern.
/* Program to display the following pattern:
**********
**********
**********
*/
#include<iostream.h>
#include<conio.h>
void...
Program to display the following pattern: * *** ***** ******* *********
Write a C++ Program to Display the Following Pattern.
/* Program to display the following pattern:
*
***
*****
*******
*********
*/
#include<iostream.h>
#include<conio.h>
void...
Program to display the following pattern: 1 222 33333 4444444 555555555
Write a C++ Program to Display the Following Pattern.
/* Program to display the following pattern:
1
222
33333
4444444
555555555
*/
#include<iostream.h>
#include<conio.h>
void...
Subscribe to:
Posts (Atom)