help4code-logo
  • eLearning
    • Tutorials
    • Programs
    • Interview Questions
    • Technical Questions
    • C Language
    • C++
    • JAVA
    • HTML & CSS
    • PHP
    • AJAX
    • J2EE
    • SQL
    • jQuery
  • Go back to Home
  • Our Placements
  • Tutorials
  • Programs
  • Interview Questions
  • Technical Questions
  • Live Training
  • Our Placements
  • Associated Colleges
  • Our Recruiters
  • Back
  • C Language
  • C++
  • JAVA
  • HTML & CSS
  • PHP
  • AJAX
  • J2EE
  • SQL
  • jQuery

Programs

  1. Home
  2. Programs
  3. C Language
  4. Looping
Image

Programs - C Language - Looping

  • Programs
    • WAP to check number is armstrong
    • WAP for binary to decimal
    • WAP to count total numbers
    • WAP to find sum and avarage
    • WAP to find Factorial of any number
    • WAP for fibnacci series
    • WAP to find factotial using for loop
    • WAP to print number in 1000
    • WAP to multiply two +ve no without using * operator
    • WAP to number is palindrom
    • WAP to print right,left,opposite triangle
    • WAP to print piramid
    • WAP to find product of any number
    • WAP to print rainbow
    • WAP to find reverse number using while
    • WAP to reverse the numbers
    • WAP to find random number
    • WAP for series 1+square(x)/2+cube(x)/2+....nth
    • WAP for series 1+square(x)/2!+cube(x)/3!+....nth
    • WAP for sum of series 1+2+4+7+11+16
    • WAP for sum of series 1+2+4+7+11+16
    • WAP to print Colourful Characters in Text Mode
    • WAP to find sum of any number
    • WAP to find sum and product of number
    • WAP to find table of 2
    • WAP to generate table of entered number
    • WAP to generate even or odd number table
    • WAP to use of comma operator

Program:


#include<stdio.h>
#include<conio.h>
main()
{
int rev=0,no,rem,nsave;
clrscr();
printf("
Enter number : "
);
scanf("%d",&no);
nsave=no;
while(no>0)
{
 rem=no%10;
 rev=rev+rem*rem*rem;
 no=no/10;
}
if(nsave==rev)
  printf("
%d is armstrong "
,nsave);
else
  printf("
%d is not armstrong "
,nsave);
getch();
}
Help4Code

The help4code.com - An e-learning educational website where all computer science students can find rich collection of computer language programs which will help in exploring computer programming.

  • About
  • Associated Colleges
  • Leadership
  • Careers
  • Our Recruiters
  • Community
  • Terms
  • Privacy
  • Help
  • Press
  • Contact
  • Directory

First Floor, Plot No. 4, Near Shat Ayu College, Ring Road Nagpur, Maharashtra, India - 440022
+91 9175287066[email protected]

© Copyright 2022 help4code.com.

  • My Account
  • Sign-in
  • Sign-up