What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-09-14 13:36:02
Ascending order of three number without using Loop in c++
#include<iostream>#include <conio.h>using namespace std;int main (){ int n1,n2,n3; cout <<"Enter numbers.\n"; cout<<" first number="; cin>>n1; cout<<"second number="; cin ... Add solution -
C++ 2021-09-12 22:34:03
c++ how to create a program that stores details
#include <iostream> using namespace std; struct student { char name[50]; int roll; float marks; } s[10]; int main() { cout << "Enter information of students: " << endl; // storing information for(int ... Add solution -
Python 2021-09-11 03:09:02
c++ code to python code converter online
#include <iostream> using namespace std; int main() { char gender; double bodyweight, wrist, waist, hip, forearm, B, bodyfat, bfPercentage, A1, A2, A3, A4, A5; bodyfat = bodyweight - B; bfPercentage = (bodyfat * 100) / bodyweight; ... Add solution -
C++ 2021-09-10 20:06:03
how to use a variable as a char array size in c++
string strOne; cin >> strOne; string::size_type count = strOne.size(); char *x = new char[count](); for (int i = 0; i < count; i++){ x[i] = strOne.at(i); } for (int i = 0; i < count; i++){ cout << x[i]; } Add solution -
C++ 2021-09-10 15:55:03
un aliment traduction espagnol
int main; cin >> a; ciudfkglhsfdklmhg Add solution -
C++ 2021-09-09 08:38:01
ugly number code in c++
# include<iostream> using namespace std; int min(int x, int y, int z){ //find smallest among three numbers if(x < y){ if(x < z) return x; else &nbs... Add solution -
C++ 2021-09-07 22:35:03
Given the following declarations below. Write a loop to read a list of numbers from the keyboard terminated by -999 and store the even numbers (skip over the odd numbers) in the vector v.
cin >> x; while (x != -999) { if (x % 2 == 0) { v.push_back(x); } cin >> x; } Add solution -
C++ 2021-09-07 05:05:02
write a program that simulates the rolling of two dice in c++
#include<iostream> #include<cstdlib> #include<ctime> #include<iomanip> #include<vector> #include<cmath> #include<algorithm> int main( ) { std::cout << "enter seeding number: " ; int nu... Add solution -
C++ 2021-09-05 23:08:01
primes from 1 to n c++
#include<iostream> using namespace std; int main(){ int N, i, j, isPrime, n; cout << "Enter the value of N\n"; &nbs... Add solution