codernakul / CP2017

C Source Code for programming problems in CP2017

Home Page:https://codernakul.github.io/CP2017/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Computer Programming Summer 2017

Questions and Programming Problems:

Basic Programming:

  1. Print "Hello World" [Source Code]
  2. Read a char, int and output the same [Source Code]
  3. Read two integers and output their sum, difference, multiplication [Source Code]
  4. Write a program to calculate the area of a circle given the radius [Source Code]
  5. Calculate simple interest given principle, duration and rate of interest [Source Code]
  6. Finding a remainder after dividing one number by another. [Source Code]
  7. Write a program to read a character and output its ASCII value. [Source Code]
  8. Write a program to read a floating point number and output its integer value. [Source Code]
  9. Write a program to read a small character and convert it into capital character. [Source Code]

Conditionals:

  1. Write a program that takes as input two integers. For each integer, it should output the whether the given integer is even or odd.
  2. Write a ‘C’ program to take as input 3 integer numbers. The program then outputs the largest integer.
  3. Write a ‘C’ program to take as input 3 floating point numbers. The program then outputs the number with largest magnitude (Largest magnitude number is the largest number obtained after ignoring the sign)
  4. Write a ‘C’ program to take as input 5 integers. The program then outputs all input integers that are larger than the average of the 5 input integers. Assume distinct input integers.
  5. Write a program to read an integer input from the user and print the last two digits of that integer.
  6. Write a program to read two characters and determine if the first character is capital or small form of the second character
  7. Write a program to read an integer and output which of 2, 3, and 5 divide it. There should be only one print statement.

About

C Source Code for programming problems in CP2017

https://codernakul.github.io/CP2017/


Languages

Language:C 100.0%