Saturday, March 8, 2014
C program to find either the entered alphabet is vowel or not
#include <stdio.h>
#include<conio.h>
int main()
{
char ch;
printf("Enter a character\n");
scanf("%c", &ch);
#include<conio.h>
int main()
{
char ch;
printf("Enter a character\n");
scanf("%c", &ch);
Labels:
c program,
vowel finder
C program to check leap year
C program to find whether the year entered by user is a leap year or not.
#include <stdio.h>
#include<conio.h>
int main()
{
int year;
printf("Enter a year to check if it is a leap year\n");
scanf("%d", &year);
#include <stdio.h>
#include<conio.h>
int main()
{
int year;
printf("Enter a year to check if it is a leap year\n");
scanf("%d", &year);
Labels:
c program,
check leap year
C program to print Floyd's triangle.
This program prints Floyd's triangle. Number of rows of Floyd's triangle to print is entered by the user. First four rows of Floyd's triangle are as follows :-
1
2 3
4 5 6
7 8 9 10
#include <stdio.h>
#include<conio.h>
int main()
{
int n, i, c, a = 1;
1
2 3
4 5 6
7 8 9 10
#include <stdio.h>
#include<conio.h>
int main()
{
int n, i, c, a = 1;
Labels:
c program,
print Floyd's triangle
Friday, March 7, 2014
C program to print Fibonacci series
In Fibonacci series, except first two terms in sequence every other term is the sum of two previous terms, For example 8 = 3 + 5 (addition of 3, 5). This sequence has many applications in mathematics and Computer Science.
#include<stdio.h>
#include<conio.h>
int main()
{
int n, first = 0, second = 1, next, c;
printf("Enter the number of terms\n");
scanf("%d",&n);
#include<stdio.h>
#include<conio.h>
int main()
{
int n, first = 0, second = 1, next, c;
printf("Enter the number of terms\n");
scanf("%d",&n);
Labels:
c program,
Fibonacci series program
Thursday, March 6, 2014
Programming Languages
To perform a job, a computer needs instructions from the
users. The instructions given to the computer to perform a task is known as
program. In other words programming is a way to communicate with the computer.
We must realize that computer does not
Labels:
programming language
C program to find armstrong number
A number is armstrong if the sum of cubes of individual digits of a number is equal to the number itself. For example 371 is an armstrong number as 3^3 + 7^3 + 1^3 = 371.
#include <stdio.h> //header file
#include<conio.h> //header file
int main()
{ //start of main body
int number, sum = 0, temp, remainder;
#include <stdio.h> //header file
#include<conio.h> //header file
int main()
{ //start of main body
int number, sum = 0, temp, remainder;
Labels:
c program,
c program armstrong number
Wednesday, March 5, 2014
Basic C program to print sum of squares of 4 numbers
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d,sumsq;
printf("\nEnter 1st number...");
scanf("%d",&a);
printf("\nEnter 2nd number...");
#include <stdlib.h>
int main()
{
int a,b,c,d,sumsq;
printf("\nEnter 1st number...");
scanf("%d",&a);
printf("\nEnter 2nd number...");
Labels:
c program,
program sum of squares
C program to find a palindrome number
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n,revers=0,temp;
printf("Enter the number...");
scanf("%d",&n);
#include <stdlib.h>
int main()
{
int n,revers=0,temp;
printf("Enter the number...");
scanf("%d",&n);
Labels:
c program,
palindrome number program
C program to reverse a number
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,num;
printf("enter
the 2-digit number");
Labels:
c program,
reverse number program
Tuesday, March 4, 2014
Input Devices (Computing)
Input devices are used not only to enter data into the
computer but also the instructions or programs that tell the computer what to
do and how to do with the given data. Some of the common input devices are
keyboard, mouse, joystick, optical character reader, light pen, scanner and
disk drives etc.
Keyboard:-
Keyboard is an important input device used to enter data and
instructions into the computer.The standard arrangement
Labels:
input devices
Stanford University
Stanford
University, established in 1885, is known as one of the world's leading
research and teaching organization, with one of the most well-known faculties
in the nation.
Labels:
Stanford University,
Top Universities
Subscribe to:
Posts (Atom)