Write a Program to perform addition, subtraction, multiplication and division of Two Numbers.#include <stdio.h>int main(){ int first, second; int addition, subtract, multiply; float divide; printf("Enter two integers\n"); scanf("%d%d", &first, &second); addition = first + second; subtract = first - second; multiply =...
To Perform Addition, Subtraction, Multiplication and Division of Two No.
Thursday, 10 January 2013
Read more ...
Add n Numbers
Thursday, 10 January 2013
Write a Program Add n Numbers Without using an array.#include <stdio.h>int main() { ...
Read and Write Character Until End Of File
Thursday, 10 January 2013
Write a Program Read and Write Character Until End of File.#include <stdio.h>int main(void){ int a; for ( ; ; ) { ...
To Print The Reverse Number
Monday, 7 January 2013
Write a program the outputs of number with the digits reversed.
#include <stdio.h>
#include <math.h>
int main()
{
int intnumber; /* can try long for bigger range, int range is the limit*/
int condition, remainder;
...
Swap two no using pointers
Monday, 7 January 2013
Swap two numbers using pointers
#include <stdio.h>int main(){ int x, y, *a, *b; int temp; printf ("Enter the value of x and y\n"); scanf ("%d%d", &x, &y); printf ("Before Swapping\n x = %d\n y = %d\n", x, y); a = &x; b = &y; temp = *b; *b = *a; *a = temp; printf("After...
Swapping of two numbers in C
Monday, 7 January 2013
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
Swapping of two numbers
#include <stdio.h>
int main()
{
int x, y;
int temp;
printf ("Enter the value of x and y\n");
scanf ("%d%d", &x, &y);
printf ("Before Swapping\n x =...
Find Out The Largest Value
Monday, 7 January 2013
Write a program that determines
the largest value among the integers.
#include <stdio.h>#include <conio.h>int main(){ int i, num[5], largest = 0; int stop = 0; while( stop != -1) { printf("Enter 5 integers separated by a space: "); for(i=0;...
Find Out The Smallest Value
Monday, 7 January 2013
Write a program that determines
the smallest value among the integers.
#include <stdio.h>#include <conio.h>int main(){ int i, num[5], smallest = 0; int stop = 0; while( stop != -1) { printf("Enter 5 integers separated by a space: "); for(i=0;...
Add an integer between 0 to 999
Monday, 7 January 2013
Write a program that reads an integer between 0 to 999
and adds all the digits in the integer.
#include <stdio.h>
#include <conio.h>
int main()
{
int count = 0, num = 0;
int reminder = 0, sum = 0;
int stop = 0;
while (stop != -1)
{
printf("Enter an integer: ");
...
Find out Even or Odd integer
Monday, 7 January 2013
Write a program that
reads an integer and checks whether it is odd or even.
#include <stdio.h>#include <conio.h>int main(){ int num = 0; int reminder = 0; while(num != -1) { printf("Enter an integer (-1 to stop): "); scanf_s("%d", &num, sizeof(int)); ...
Socket Programming in C
Thursday, 3 January 2013
Socket Programming in c
How To Create the TCP/IP Client Server Model?
The classic client-server model, the client sends a request to the server, and the server to do some processing, will reply to the request is received (or back) returned to the client. The terms...
Subscribe to:
Posts (Atom)
Labels
- Armstrong Number (1)
- armstrong series (1)
- ATM Programing in C (1)
- c example (2)
- c language example (1)
- C program (9)
- c program of divided by 7 (1)
- code for pascal triangle (1)
- concatenate two strings (1)
- Construct Pyramid of Numbers (1)
- digital clock (1)
- Digital clock in c (1)
- Enable or disable USB ports (1)
- fibonacci sequence (1)
- fibonacci series (2)
- find cube in c (1)
- find square in c (1)
- finding the length of string (1)
- floyd triangle (1)
- Floyd Triangle in C (1)
- generate fibonacci series (1)
- heap sort (1)
- length of string in c (1)
- linear linked list (1)
- linked list (1)
- odd number (1)
- odd numbers in c (1)
- pascal triangle (1)
- pascal triangle in c (1)
- pascal's triangle (1)
- pattern of number (1)
- prime numbers (1)
- print message (1)
- print message in c (1)
- pyramid (1)
- pyramid in c (1)
- pyramid of numbers (1)
- strcat (1)
- string length (1)
- strlen (1)
- To Find the Length of any string (1)
- To generate a Fibonacci series in C Programming (1)
- to generate prime numbers (1)
- To Print Any Message on Screen (1)
- to print numbers (1)
- to print Odd numbers (1)
- to print series (1)
- USB Port Programming in C (1)
- Why to use C ? (1)