I would but how exactly do I implement the loop? where do i put it? should it be after each case or can it be at the end of all cases?
Type: Posts; User: cprogstudent
I would but how exactly do I implement the loop? where do i put it? should it be after each case or can it be at the end of all cases?
I think I mislead u and I apoligize for it. The program u wrote does not ask wether or not the user wants to continue using the program or not (If answer is YES, use the previous answer as the first...
I wrote a switch program that performs 4 basic math operations:
#include <iostream.h>
int main(){
int ch;
float m1,m2,mt,d1,d2,dt,a1,a2,at,s1,s2,st;
cout<<"Please select a number from...
THX for all the help guys i really appreciate it. When I said CS i meant the game counter-strike:cool:
THX so much for all the help!
this works out perfectly hkmp5 (u play CS?) but i was just wonderin if u can make the spacings right without the use of ....
#include <iomanip>
using namespace std;
THX
hmmmm there was a mistake in the second output that i types. the spacing should make it a table that looks like a "box-shaped" multiplication table. anyways ill try your suggestion hkmp5
This is my multiplication table program;
#include <iostream.h>
int main()
{
for (int x = 0; x < 10; x++) {
for (int y = 0; y < 10; y++) {
cout << x*y << " ";
}
cout...
Thanks you have been very helpful :D . I starting to get the hang of this.
Hi its me again :) . I understand that in a loop function
" for(int x=0;x<100;x++) " X increases by one as long as X is <100. But I wanna know what expression to use (ie. x++,x** if it x** even...
Hey thx for the help that really cleared things up.
I know this is just a simple problem. I am new cprogramming student and I would like to know what and how I can incorporate the "%" function.