Skip to content

Author: admin

This author has written 114 articles
  1. Home>
  2. admin>
  3. Page 11

Program to swap two numbers using third variable in C

  • Post author:admin
  • Post published:August 4, 2018
  • Post category:C Programms
  • Post comments:0 Comments

The program will accept two numbers form the user "a" and "b" for swapping. For this purpose, we have to use a third variable "tmp". #include<stdio.h> #include<conio.h> void main() {…

Continue ReadingProgram to swap two numbers using third variable in C

Program to reverse a number in C

  • Post author:admin
  • Post published:July 30, 2018
  • Post category:C Programms
  • Post comments:0 Comments

#include<stdio.h> #include<conio.h> void main() { int long a,n,rev=0; clrscr(); printf("enter any number"); scanf("%lld",&n); while(n>0) { a=n%10; rev=rev*10+a; n=n/10; } printf("%lld",rev); getch(); } Output:  

Continue ReadingProgram to reverse a number in C

Program to add individual digits of a number

  • Post author:admin
  • Post published:July 30, 2018
  • Post category:C Programms
  • Post comments:0 Comments

#include<stdio.h> #include<conio.h> void main() { long int a,n,sum=0; clrscr(); printf("enter any number"); scanf("%lld",&n); while(n>0) { a=n%10;    // storing the remainder sum=sum+a; n=n/10; } printf("%lld",sum); getch(); } Output:

Continue ReadingProgram to add individual digits of a number

Table of Any Number in C

  • Post author:admin
  • Post published:July 30, 2018
  • Post category:C Programms
  • Post comments:0 Comments

C program to print the table of any number entered by the user. #include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("enter the value of a"); scanf("%d",&a); for (b=1;b<=10;b=b+1) {…

Continue ReadingTable of Any Number in C

Program To Print The Absolute Value In C

  • Post author:admin
  • Post published:July 30, 2018
  • Post category:C Programms
  • Post comments:0 Comments

C program to print the absolute value of the given number. Absolute value is the actual value or magnitude without any sign. Suppose user entered a value -12 then the…

Continue ReadingProgram To Print The Absolute Value In C

Prime Number Program In C

  • Post author:admin
  • Post published:July 30, 2018
  • Post category:C Programms
  • Post comments:0 Comments

C PROGRAM TO ENTER A NUMBER BY USER AND TO CHECK WHETHER IT IS A PRIME NUMBER OR NOT. A prime number is a number that is divisible by itself…

Continue ReadingPrime Number Program In C

Fibonacci Series In C

  • Post author:admin
  • Post published:July 30, 2018
  • Post category:C Programms
  • Post comments:0 Comments

Hello Programmers.....Now a simple program to print the Fibonacci series. Fibonacci series is a series of the numbers in which each number is the sum of two last numbers or two…

Continue ReadingFibonacci Series In C

Star Pyramid In C

  • Post author:admin
  • Post published:July 30, 2018
  • Post category:C Programms
  • Post comments:0 Comments

#include<stdio.h> #include<conio.h> void main() { int i,j,k; clrscr(); for(i=1;i<=5;i++) { for(k=1;k<=5-i;k++) { printf(" "); } for(j=1;j<=i;j++) { printf(" *");   } printf("\n"); } getch(); } Output:

Continue ReadingStar Pyramid In C

Mirrored Right Triangle Pattern In C

  • Post author:admin
  • Post published:July 30, 2018
  • Post category:C Programms
  • Post comments:0 Comments

Simple C program to print the mirrored right triangle pattern in C. #include<stdio.h> #include<conio.h> void main() { int i,j,k; clrscr(); for(i=0;i<=4;i++) { for(k=0;k<=4-i;k++)   // for  gap -->the gap is in…

Continue ReadingMirrored Right Triangle Pattern In C

Right Triangle Pattern in C

  • Post author:admin
  • Post published:July 30, 2018
  • Post category:C Programms
  • Post comments:0 Comments

A simple C program to print a right triangle pattern by using stars. There are various types of patterns. But i will be uploading the important patterns that will help…

Continue ReadingRight Triangle Pattern in C
  • Go to the previous page
  • 1
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • Go to the next page

Recent Posts

  • Hello world!
  • How to publish the first blog post | Get Indexed | Google
  • 8 Ways to make money through blogging|Passive Income
  • Build a strong blogging brand | Best tips for blogging
  • Add Facebook page plugin to the blog

Recent Comments

  1. A WordPress Commenter on Hello world!
Copyright [oceanwp_date] - Design by Unique Ratlam Ajanta Talkies Road

WhatsApp us