About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Wednesday 3 October 2018

Assignment-I (Part-II) C Programming for Problem Solving

Discuss in brief about "Structure of C Program" with programming example.

What are C-tokens? List and discuss in brief.

What are data types? List and discuss in brief.

What is variable?Discuss it's declaration and initialization with syntax and examples.

What are I/O functions? Discuss formatted I/O functions with syntax and examples.

List and Discuss any 5 types of operators supported by C language.

Write C programs for following.

  • To find largest of two numbers using if else statement.
  • To find largest of three numbers using conditional operator.
  • To check, whether the number is Even or Odd number.
  • To check, whether the year is leap year or not leap year.
  • To find sum of first and last digit of entered 3 digits number.
  • To swap (interchange) the contents of two variables using temporary variable.
  • To swap (interchange) the contents of two variables without using temporary variable.





No comments:

GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...