Skip to content
logo
  • Home
  • C
    • Programs
    • Tutorials
    • Interview Questions
  • C++
    • Programs
    • Tutorials
    • Interview Questions
  • Java
    • Programs
    • Tutorials
    • Interview Questions
  • Android
  • Python
    • Tutorials
    • Programs
    • Interview Questions
    • Django Tutorials
  • .Net
    • C#
    • VB.Net
      • Tutorials
      • Interview Questions
    • ASP.NET
  • PHP
  • Batch File
  • JavaScript
  • SQL
  • PL/SQL
    • Tutorials
    • Programs
    • Interview Questions
  • Programming
    • Articles
    • Tutorials
    • Projects
  • Interview Q & A
  • Books
  • DSA
  • Design
    • Design
    • HTML Interview Questions
  • Development
  • Review
  • Sponsored
  • Tools
logo

Complete guide to run any program from this blog

Others

Hello everyone, few days ago one of my blog visitor sent me a mail. He was facing problem to run program from this blog. That’s why I thought that I should write a small guide regarding this. The step by step process is given below by which you can easily run or use any program

Complete guide to run any program from this blog Read More »

C++ program to find sum of series 1/2+4/5+7/8+……

Sum of Series

#include<iostream.h>#include<conio.h> void main(){ clrscr(); //to clrscr the screen int i,n; float sum=0,x,a=1; cout<<“1/2+4/5+7/8+……”; cout<<“nnHow many terms(ex: 1,2,3…n)?”; cin>>n; for(i=0;i<n;++i) { x=a/(a+1); sum+=x; a+=3; } cout<<“nSum=”<<sum; getch(); //to stop the screen}

C++ program to find sum of series 1/2+4/5+7/8+…… Read More »

C program to find sum of series 1^2+3^2+5^2+…..+n^2

Sum of Series

#include<stdio.h>#include<conio.h> void main(){ int i,n,sum=0; clrscr(); //to clear the screen printf(“1^2+3^2+5^2+…..+n^2”); printf(“nnEnter value of n:”); scanf(“%d”,&n); for(i=1;i<=n;i+=2) sum+=i*i; printf(“Sum=%d”,sum); getch(); //to stop the screen}

C program to find sum of series 1^2+3^2+5^2+…..+n^2 Read More »

C++ program to find sum of series 1+x+x^2+……+x^n

Sum of Series

#include<iostream.h>#include<conio.h>#include<math.h> void main(){ clrscr(); //to clear the screen long i,n,x,sum=1; cout<<“1+x+x^2+……+x^n”; cout<<“nnEnter the value of x and n:”; cin>>x>>n; for(i=1;i<=n;++i) sum+=pow(x,i); cout<<“nSum=”<<sum; getch(); //to stop the screen}

C++ program to find sum of series 1+x+x^2+……+x^n Read More »

C program to print following trianlge using character *

Print Figures

#include<stdio.h> #include<conio.h> void main() { int i,j,k,n; clrscr(); //to clear the screen printf(“How many lines?”); scanf(“%d”,&n); for(i=0;i<n;++i) { printf(“n”); for(j=0;j<i;++j) printf(” “); for(k=n;k>i;–k) printf(“*”); } getch(); //to stop the screen }

C program to print following trianlge using character * Read More »

C++ program to print following trianlge using character *

Print Figures

#include<iostream.h>#include<conio.h> void main(){ clrscr(); //to clear the screen int i,j,k,n; cout<<“How many lines?”; cin>>n; for(i=0;i<n;++i) { cout<<“n”; for(j=0;j<i;++j) cout<<” “; for(k=n;k>i;–k) cout<<“*”; } getch(); //to stop the screen}

C++ program to print following trianlge using character * Read More »

C program to print following square using character *

Print Figures

#include<stdio.h> #include<conio.h> void main() { int i,j,n; clrscr(); //to clear the screen printf(“Enter size of the square:”); scanf(“%d”,&n); for(i=0;i<n;++i) { printf(“n”); for(j=0;j<n;++j) { if(i==0||i==n-1||j==0||j==n-1) printf(“*”); else printf(” “); } } getch(); //to stop the screen }

C program to print following square using character * Read More »

C++ program to print following square using character *

Print Figures

#include<iostream.h>#include<conio.h> void main(){ clrscr(); //to clear the screen int i,j,n; cout<<“Enter size of the square:”; cin>>n; for(i=0;i<n;++i) { cout<<“n”; for(j=0;j<n;++j) { if(i==0||i==n-1||j==0||j==n-1) cout<<“*”; else cout<<” “; } } getch(); //to stop the screen}

C++ program to print following square using character * Read More »

← Previous 1 … 173 174 175 … 187 Next →

Important Pages

  • About
  • Contact
  • Write for Us
  • Privacy Policy  

Categories

  • Home
  • C
    • Programs
    • Tutorials
    • Interview Questions
  • C++
    • Programs
    • Tutorials
    • Interview Questions
  • Java
    • Programs
    • Tutorials
    • Interview Questions
  • Android
  • Python
    • Tutorials
    • Programs
    • Interview Questions
    • Django Tutorials
  • .Net
    • C#
    • VB.Net
      • Tutorials
      • Interview Questions
    • ASP.NET
  • PHP
  • Batch File
  • JavaScript
  • SQL
  • PL/SQL
    • Tutorials
    • Programs
    • Interview Questions
  • Programming
    • Articles
    • Tutorials
    • Projects
  • Interview Q & A
  • Books
  • DSA
  • Design
    • Design
    • HTML Interview Questions
  • Development
  • Review
  • Sponsored
  • Tools

Copyright © 2026 The Crazy Programmer