Hi, my prof is driving us crazy.. Please help.. there are two errors in this program and i cant figure out what it means..
error C4716: 'randompoint' : must return a value
error C4716: 'addup' : must return a value
Here's the code:
#include<iostre am.h>
#include<stdlib .h>
#include<fstrea m.h>
int array[3][3]={{49, 50, 51},{52,53,54}, {55,56,57}};...
User Profile
Collapse
-
not yet=(
for this number
2.Write a program that will ask for a long number and sum the even and odd digits in the number.
my prof changed it
i have this code:
#include <iostream.h>
void main()
{
int num, r, evensum=0, oddsum=0;
cout<<"Enter number: "<< endl;
cin>>num;
r=num/10;... -
hehehe.. we havent tackeld arrays yet.. only loops.. so we are supposed to loop for this program.. my syntaz doesnt work..=( it doesnt display the 0 wahhh...Leave a comment:
-
i want to join.. i suck at codes.. i get the logic but i cant put it into syntax.. hehehe...Leave a comment:
-
loop and switch.. help:)
im quite confused with loops and switch.. will you please help me:)
i have 3 problems..:)
1.Write a program that will ask for a long number and count how many digits are there in the number.
ex. Enter num: 10854
Output: 5
2.Write a program that will ask for a long number and count how many digits in the number are even and how many are odd.
ex. Enter num: 80572
Output: 3 digits...
No activity results to display
Show More
Leave a comment: