Questions and Answers Set 1.

1
Write a program to print HELLO WORLD on screen. solution
2
Write a program to display the following output using a single cout statement.
   Subject            Marks
   Mathematics     90
   Computer         77
   Chemistry        69  solution
3
Write a program which accept two numbers and print their sum. solution
4
Write a program which accept temperature in Farenheit and print it in centigrade. solution
5
Write a program which accept principle, rate and time from user and print the simple interest. solution
6
Write a program which accepts a character and display its ASCII value.solution
7
Write a program to swap the values of two variables. solution
8
Write a program to calculate area of circle. solution
9
Write a program to check whether the given number is positive or negative (using ? : ternary operator ) solution
10
Write a program to check whether the given number is even or odd (using ? : ternary operator ) solution

Post a Comment

Previous Post Next Post