Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
29Activity
0 of .
Results for:
No results containing your search query
P. 1
3887071 Simple c Programs

3887071 Simple c Programs

Ratings: (0)|Views: 369|Likes:
Published by SANTINDIAN
Sant
Sant

More info:

Published by: SANTINDIAN on Oct 10, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

06/28/2014

pdf

text

original

 
C programs
1.Program to print text2.Program To Read Two Numbers And Print TheSum Of Given Two Numbers.3.Program To Accept Student Roll No, Marks in 3Subjects and Calculate Total, Average and Print it.4.Program To Read Three Numbers And Print TheBiggest Of Given Three Numbers5.Program To Read A Number And Find Whether The Given Number Is Even Or Odd.6.Program to accept a year and check whether thegiven year IS leap year or not.7.Individual Digits8. Program to accept a three digit number and printthe sum of individual digits.9. Program to accept a number and check the givennumber is Armstrong or not.10. Program to print ODD numbers from 1 to 1011. Program to print natural numbers from 1 to 10in Reverse12. Program to print sum of the natural numbersfrom 1 to 10.13. Program to accept a number and printmathematical table of the given no.14. Program to print 1 to 10 mathematical tables .15. Program to print fibonacci series .16. Program to print numeric pyramid17. Program to print numerical pyramid.18. Program to print numerical diamond.19. Program to print character pyramid.20. Program to print character diamond.21. Program to find biggest of two no by usingternary numbers22. Program to find biggest of four no by usingternary numbers23. Program to print smallest of four no by usingternary operators24. Program to accept a year and check the givenyear is leap or not by using ternary25. Program to accept a character in the uppercaseand print in lower case.26. Program to accept a character in any case and print in another case.27. Program to natural number from 1 to 10 byusing while loop.28. Program to accept a string and print it by usingthe while loop.29. Program to accept a string in upper case and print it by lower case.30. Program to accept a string in any case and printit by another case .31. Program to accept a string print each word innew line.32. Program to accept a string and count no of capital letters, no. of small letters and no. of special characters33. Program to accept any single digit number and print it in words .34. Program to print prime numbers between 1 to10035. Program to accept two numbers and print sumof two numbers by using functions36. Program to accept a number and find factorialof given number 37. Program to accept a number and check thegiven number Armstrong or not38. Program to accept a number and print the sumof given and Reverse number 39. Program to accept 10 numbers and print firstfive numbers in original order and print last fivenumbers in reverse order.40. Program to accept a string and print the reverseof the given string by using for loop.41. Program to accept a string and check the givenstring is palindrome or not .42.Program to accept values into 3 dimensionalarray and print .43. Program to print upper triangle .44. Program to accept two 3 dimensional array andstore addition of those into arrays into the thirdarray .45. Program to accept a string and find the lengthof the given string by using functions46. Program to count the number of words,characters, alphabets, vowels, consonants and digitin a line of text.47. Program to accept two string and compare thestrings are equal or not48. Program to sort the entered numbers using bubble sort.49. Program to read date,month, year and print thenext day’s date,month,year.50. Program to interchange two values using pointers.51. Program to print “PASCAL TRIANGLE”.52. Program to check whether a given number is perfect or not.53. Program to check whether a given number is prime number.54. Program to read ‘n’ number and print them inmatrix terms in all orders.55. Program to search an element using binarysearch56. Program to accept two numbers and print thesum of given two numbers by using pointers57. Programs to multiply two Matrices58. Program to print prime number between 1-10059. Program to accept a string and find the lengthof the string60. Program to fibanocci of matrix61. Program a structure which reads ‘n’ studentsinformation (name,3 subjects marks) and calculatetotal marks, result print them in a particular format.62. Program to find whether a square matrix is a)symmetric b) skew symmetric c) none of two.63. Program to find area of a triangle when theresides are given.
 
64. Program to print Armstrong number between 1-500.65. Program to check whether a given number isArmstrong or not.66. Program to print the floyd’s triangle.67. Program to read data in 3 structures and print68. Program to print a diagonal matrix.69. Program to copy contents of one file intoanother.70. Program to create a file of number and copyodd number into second file and even number intothird file.71. Program a structure which stores informationabout hotels which stores information about name,grade, room change, no of rooms.72. Program which does the below process after reading on odd no of integer.73. Program to sort the entered elements usingselection sort technique.74. Program to find whether a number is divisible by ‘11’ or not without actual division.75. Program to find maximum and minimum of entered ’n’ number using arrays.76. Program to print the following series until theresum exceeds 2.6 term value exceeds 1.5x+x2/2!+x3/3!+------------.77. Program to print a frequency distribution tablefor a class of 20-students in the following format.The marks range form 1-25.78. Program to accept values into an array and printarray in reverse and original format by using threedifferent functions.79. Program to accept values into singledimensional array and print the array in reverse byusing pointers.80. Program to read a string and print the number of characters in each word of the string.81. Program to accept two strings and comparethose two strings82. Program to accept a string using pointers andfunctions.83.Program to read a string and print the first twocharacters of each word in the string.84.Program to accept two numbers and print thesum of given two numbers by using pointers85.Program to accept a string and print reverse of the given string by using functions.86. Program to accept two 3 dimensional array andstore subtraction of those two arrays into thirdarray..87.Program to accept a single dimensional arrayand print them by using pointers88.Program to accept two strings and biggestamong them89.Program to print 4 dimentional matrix withconstant number.90.Prongram to accept a string and print each wordin reverse91. Program to accept elements into singledimensional array and print the array in ascendingorder by using three different arrays.92.Program to accept data and store the given datainto file print the data.93. Program to accept data in lower case and storethe given data into file into upper case and print thedata.94.Program to copy contents of one file intoanother.95. Program to create a file of numbers and copyodd number into second file and even number intothird file96.Program to accept a string in lower case and print first character of each word in upper case.97.Program to accept two numbers and interchangetwo values using functions.98.Program for example of static variable.99.Program to accept a string and print by trailingspaces.100. Program to print anti diagonal.
 1. Program to print text
 # include <stdio.h># include <conio.h>main(){clrscr(); printf(“HELLO WELCOME TOVIDYARTHI COMPUTERS”); printf(“Hanamkonda Warangal phone : 0870-2574900, 9849103344”);getch();}
 
2. Program To Read Two Numbers And PrintThe Sum Of Given Two Numbers.
 # include <stdio.h># include <conio.h>main(){int a,b, sum;clrscr (); printf (“ENTER VALUE FOR A ; “);scanf (“%d”,&a); printf(“ENTER VALUE FOR B ;”);scanf(“%d”,&b);sum=a+b; printf(“Sum Of Given Two Numbers are %d”, sum);getch();}
 
 3. Program To Accept Student Roll No, Marksin 3 Subjects and Calculate Total, Average andPrint it.
# include <stdio.h># include <conio.h>main(){int r,b,c,d, tot, avg;clrscr(); printf (“ENTER STUDENTRNO ; “);scanf (“%d”,&r); printf(“ENTER FIRSTSUBJECT MARKS ;”);scanf(“%d”,&b); printf(“ENTER SECONDSUBJECT MARKS;”);scanf(“%d”,&c); printf(“ENTER THIRDSUBJECT MARKS ;”);scanf(“%d”,&d);tot=b+c+d;avg=tot/3; printf(“\n\n\t\t VIDYARTHICOMPUTERS – HANAMAKONDA \n\n”); printf(“\t STUDENT RNO ; %d“,r); printf(“\t FIRST SUBJECTMARKS ;%d “,b); printf(“\t SECOND SUBJECTMARKS ;%d “,C); printf(“\t THIRD SUBJECTMARKS ;%d “,d); printf(“\t AVERAGE MARKS ;%d”, avg);getch();}
 4. Program To Read Three Numbers And PrintThe Biggest Of Given Three Numbers
 # include <stdio.h># include <conio.h>main( ){int a,b,c,big=0;clrscr( ); printf(“ENTER VALUE FOR A:”);scanf(“%d”,&a); printf(“ENTER VALUE FOR B:”);scanf(“%d”,&b); print(“ENTER VALUE FOR C:”);scanf(“%d”,&c);if (a>big) big=a ;if(b>big) big=b;if (c>big) big=c; printf (“BIGGEST OF ABOVE GIVENTHREE NUMBER IS %d”,big)getch( );}
 5. Program To Read A Number And FindWhether The Given Number Is Even Or Odd.
 # include <stdio.h># include <conio.h>main(){int n,r;clrscr(); printf(“ENTER A NUMBER ;”);scanf(“%d”, &n);r=n%2;if(r= = 0) printf(“the above given number is evennumber”);else printf(“the above given number is oddnumber”);getch();
}
 6. Program to accept a year and check whetherthe given year IS leap year or not.
 # include <stdio.h># include <conio.h>main( ){int y;clrscr( ); printf(“enter a year:”);scanf(“%d”,&y);if(y%4==0& &y%100!=0|| y%400==0); printf(“the above given year IS a leapyear”);else printf(“the above given year IS not a leapyear”);getch();}
7. Individual Digits
 # include <stdio.h># include <conio.h>main( ){int a,b,c,d;clrscr( ); printf ( “ Enter a two digit number :”);

Activity (29)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
aashishanshu liked this
aashishanshu liked this
aashishanshu liked this
aashishanshu liked this
Rakesh Sinha liked this
Nandan Tiwary liked this
Nandan Tiwary liked this
amulvijaymca liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->