Kundan Chaudhary

Pages

  • News
  • Android
  • C
  • C ++
  • Java
  • Advanced Java
  • Cyber Security
  • HTML
  • CSS
  • Java Script
  • PHP

C Practical 2 & 3

Practical 2
Program 1 : Write a program to display multiplication table.
Program 2 : Write a program to print 1+1/2+1/3+1/4+ _ _ +1/N series.
Program 3 : Write a program to find sum of all integers greater than 100 & less than 200 and are divisible by 5.
Program 4 : The distance between two cities (In KM) is input through key board. Write a program to convert and print this distance in meters, feet, inches & centimeters.
Program 5 : Write a program to find sum of first N odd numbers. Ex. 1+3+5+7+_ _+N.

Practical 3
Program 1 : Write a program for use of putchar( ) and getchar( ) function.
Program 2 : Program to print Patterns.
*
* *
* * *
* * * *
Program 3 : Program to print Patterns.
1 2 3 4 5
   2 3 4 5
      3 4 5
         4 5
            5
Program 4 : Program to print Patterns.
A A A A A
B B B B
C C C
D D
E
Program 5 : Program to print Patterns.
1
0 1
1 0 1
0 1 0 1
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Home
Subscribe to: Posts (Atom)

Labels

  • Advanced JAVA (11)
  • Android OS (10)
  • Android SDK (1)
  • Android Studio (1)
  • C (27)
  • Cyber (6)
  • GTU Practical (12)
  • Java (22)
  • Java Script (10)
  • Linux (1)
  • News (6)
  • OpenSUSE (1)
  • PHP (1)
  • RPM (1)
  • UML (7)
  • whats App (1)

About Me

Kundan
View my complete profile

Search This Blog

Total Visitor

133667

Popular Posts

  • Categorize the following relationships into generalization, aggregation or association
    A country has a capital city A dining philosopher uses a fork A file is an ordinary file or a directory file Files c...
  • Create a class called Student. Write a student manager program to manipulate the student information from files by using FileInputStream and FileOutputStream
    import java.io.FileInputStream; import java.io.FileOutputStream; public class Student { public static void main(String[...
  • Prepare a sequence diagram for issuing a book in the library management system
  • Prepare an activity diagram for computing a restaurant bill, there should be charge for each delivered item. The total amount should be subject to tax and service charge of 18% for group of six and more. For smaller groups there should be a blank entry. Any coupons or gift certificates submitted by the customer should be subtracted
  • Refine the student manager program to manipulate the student information from files by using the BufferedReader and BufferedWriter
    import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; public c...
The Hive of Code. Powered by Blogger.