Posts

Showing posts with the label CQuestions

Write a program to check if a number is prime or not.

Nested loop.

write a program to calculate the sum of all numbers from 1 and 100.

write a program to print reverse of the table for a number n.

write a program to print the factorial of a number n.

write a program to print all the odd numbers from 1 to 100.

program to (keep taking number as input from user until user enters a number which is multiple of 5.)

write a program (keep taking numbers as input from user until user enters an Odd number)

Write a program to print the table of number input by the user.

write a program to print the sum of first n natural numbers and also, print them in reverse.

write a program to Print the sum of first n natural numbers.

write a program to print the numbers from 0 to n, if n is given by user.

Write a program to find if a character entered by user is upper case or lower case.

What will be the output of this code

Write a program to print the grades to a student.

Write a program to check if a student passed or failed.

Program to print adult for age 18, teenager for 13 to 18 and child for below 13.

Write a program to check whether a person is eligible for vote or not.

Write a program to print the average of 3 numbers.

Write a program to check if given character is digit or not.