Archive for December 2018

Write a program in C++ to find area of triangle

#include <iostream.h> #include <conio.h> int main() { float base, altitude; cout << "Base: "; cin >> base; cout << "Altitude: "; cin >> altitude; cout << endl <<.
Read more

Write a program in C++ to find Highest of 3 numbers using nested if else

#include <iostream.h> #include <conio.h> int main() { int a, b, c; cout << "First No: "; cin >> a; cout << "Second No: "; cin >> b; cout << "Third No: "; .
Read more

Write a program in C++ to print prime numbers from 1 to 100

#include <iostream.h> #include <conio.h> int main() { int count=0; for (int i=1; i<=100; i++) { for(int k=i; k>=1; k--) { if(i%k==0) { count++; } } .
Read more

Write a program in C++ to find area of circle

#include <iostream.h> #include <conio.h> int main() { float r, area; cout << "Enter Radius:"; cin >> r; area = 3.14*r*r; cout << endl << "Area: " << area; .
Read more

Write a program in C++ to check the number is positive or negative using Conditional Operator

#include <iostream.h> #include <conio.h> int main() { int a; cout << "Enter a:"; cin >> a; a>=0 ? cout<<"Positive" : cout<<"Negative"; getch(); return 0; } Out.
Read more

Write a program in C++ to swap two variables without using third variable

#include <iostream.h> #include <conio.h> int main() { int a=10, b=15; a = a+b; b = a-b; a = a-b; cout << "a:" << a << endl; cout << "b:" << b << endl; getch(); .
Read more

Write a program in C++ to find the Square and Cube of any number

#include <iostream.h> #include <conio.h> int main() { float a, b; cout << "Enter No: "; cin >> a; cout << "Square:" << a*a << endl; cout << "Cube:" << a*a*a <<.
Read more

Write a program in C++ to find Addition, Subtraction, Multiplication, Division, Remainder and Average of two floating numbers

#include <iostream.h> #include <conio.h> int main() { float a, b; cout << "First No: "; cin >> a; cout << "Second No: "; cin >> b; cout << "Add:" << a+b <<.
Read more

Write a program in C++ to input roll no, name and marks and display entered details and average marks

#include <iostream.h> #include <conio.h> int main() { int rollno; char name[30]; float mat, sci, com; cout << "Roll No: "; cin >> rollno; cout << "Name: "; cin >> name; .
Read more

C++ Programs

Use CTRL+F to find the desired program Write a program in C++ to input roll no, name and marks and display entered details and average marks Write a program in C++ to find Addition, Subtraction, Multiplication, Division, Remainder and Average of.
Read more

C Language

Use CTRL+F to find the desired program Write a program to input roll no, name and marks and display percent and average marks .
Read more

UC Browser is NOT allowed to browser this website

UC Browser is  restricted  for this website.  Please use  Google Chrome  or  any other browser  to view the content of this websit.
Read more

Contact Form

Name

Email *

Message *

Followers