Showing posts with label very elementary. Show all posts
Showing posts with label very elementary. Show all posts

Storing numbers in a link list in decreasing order

Problem statement
Write a c program to store numbers in link list in decreasing order,
your program should also print them

Scanning numbers in link list using recursion

Problem statement
Write a c program to recursively add element in a link list
your program should also print them recursively

Printing stack using recursion

Problem statement
Write a c program to print link list using recursion

Storing numbers in link list

Problem statement
Write a c program to store values using link list, your program should store the values in order they are entered and the print the values. total number of inputs will be given by user,
for example
total number of integer you will enter 5
1
2
3
5
1
then your program should print
1
2
3
5
1
and store in the same manner only, i.e. the number which will be entered in the list will be in the last of the list

Storing numbers using link list

Problem statement
Write a c program to store numbers using link list and then print them,the new number entered should be at the top of list

Calculating Volumes of Sphere,cube,Cone using single program


Problem statement
   Problem: Write a 'C' program to find Volumes of:

 i)   Sphere
 ii)  Cube
 iii) Cone

 You need to accept character from user for choice of figure.
 Characters for figure are as 'S' for Sphere, 'C' for Cube and 'D' for Cone.
 According to figure chosen, Accept radius/height/side for figures from user.
 Compute the volume according to the given values and print the volume.

Printing order

Problem statement
  Write a Program to print below figure

   *
  * *
 * * *
* * * *
* * * * *
Accept number of lines 'n' from user.

Scanning a line using scanf function

Problem statement
Write a c program to scan a line using scanf()

Scanning character using getchar

Problem statement
Write a c program to scan a character using getchar function

Printing multiplication table

Problem statement
Write a c program to print multiplication table
You should take the inputs from the user.
Do not use any array.

Value of pi using basel's equation

Problem statement 
Write a c program to calculate the value of pi*pi/6 using Basel's equation
the equation is pi2/6=1/12+1/22+1/32 and so on  

Separating integer and floating part of a number

Problem statement
Write a c program to separate integer part and floating part of a floating point number

Sum of number divisible by 9 from 0 to 100

Problem statement
Write a c program to sum all the numbers from 0 to 100 which are divisible by 9

Checking of even number

Problem statement
Write a c program to scan a number and print weather a number is odd or even

Swaping numbers using pointers

Problem statement
Write a c program to Swap the values of two numbers using pointer

Maintain Student record using link list

Problem Statement
Write a c program to store information about students using link list
you should store information about his name,age,height ,
(this is a test program if you understand how to do this program then you can store any number of information)

sum of series 1+(1/2)+(1/3)...+(1/n)

Problem Statement
Write a c program to calculate the sum of the series
1+(1/2)+(1/3)...+(1/n)
you should take the value of n as an input from the user

Taking Input till one Specific Number is Entered

Problem Statement
write a c program 
which takes input till 0 is entered
once 0 is entered it stops taking input and shows number of input taken

Time using structure

Problem Statement
Write a c program to show use of structure
make a structure which is having 3 places 
  1. hour
  2. minute
  3. second
take input from user and then print in suitable format

Printing List of Item

Problem Statement
write a c program to print th following
***LIST OF ITEM***
ITEM PRICE
BOOKS $16.75
PENCIL $15.00