Skip to content

That Repository Includes Different C language questions For New LearnersπŸ§‘β€πŸ’»πŸ§‘β€πŸ’»πŸ‘¨β€πŸ’»πŸ‘¨β€πŸ’»

Notifications You must be signed in to change notification settings

Deshan555/Simple-C-Language-Questions-and-Answers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Simple C Language Questions and Answers

Work Sheet 01

a) Write a C program to check whether a number is even or odd.(AC01.c)

b) Write a C program to check whether a number is negative, positive or zero.(AC02.c)

c) Write a C program to find maximum between two numbers.(AC10.c)

d) Write a C program to input any alphabet and check whether it is vowel or consonant.(AC11.c)

e) Write a C program to find maximum between three numbers.(AC03.c)

f) Write a C program to check whether a character is uppercase or lowercase alphabet.(AC04.c)

g) Write a C program to input week number and print week day.(AC06.c)

h) Write a C program to check whether the triangle is equilateral, isosceles or scalene triangle. (AC07.c)

i) Write a C program to calculate profit or loss.(AC08.c)

j) Write a C program to input any character and check whether it is alphabet, digit or special character.(AC09.c)

k) Write a C program to input electricity unit charges and calculate total electricity bill according to the given condition (AC05.c)

  • For first 50 units Rs. 0.50/unit
  • For next 100 units Rs. 0.75/unit
  • For next 100 units Rs. 1.20/unit
  • For unit above 250 Rs. 1.50/unit

Work Sheet 02

a) Write a C program to print day of week name using switch case.(w1.c)

b) Write a C program print total number of days in a month using switch case.(w2.c)

c) Write a C program to check whether an alphabet is vowel or consonant using switch case.(w3.c)

d) Write a C program to find maximum between two numbers using switch case.(w4.c)

e) Write a C program to check whether a number is even or odd using switch case.(w5.c)

f) Write a C program to check whether a number is positive, negative or zero using switch case.(w6.c)

g) Write a C program to create Simple Calculator using switch case.(w7.c)

About

That Repository Includes Different C language questions For New LearnersπŸ§‘β€πŸ’»πŸ§‘β€πŸ’»πŸ‘¨β€πŸ’»πŸ‘¨β€πŸ’»

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages