Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

fix it ends when it says cout how to get the protons and neutrons do you know the fix please

+1 vote
asked Jan 15, 2021 by saif khalid saif salem almansoori (470 points)
#include <iostream>
using namespace std;

int main()
{
    char w;
    cout << "Science progect SK.\n";
    cout << "You have 3 chooses.\n";
    cout << " what is the smallest partical in the world  enter(a)  atom  (c) cells and  (e) element.\n";
    cin >> w;
    cout << "if you said Atom your correct";//y means yes n means no
    char t;
    cin >> t;
    if(t=='y'){
        cout << "how to get the atomic number and atomic mass";
        
    }

cout << "how to get the protons and neutrons of an element (a) Atomic mass  atomic number (b) atomic number  atomic mass";
    
    return 0;
}

1 Answer

0 votes
answered Jan 16, 2021 by Peter Minarik (86,040 points)
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...