Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached
Favorite Tags
Member Avatar for rrreeefff

Hello, I am trying to compute the GCD non-recursively. I have no errors but when I run the program it aborts because it says c is not intlized. [code=cplusplus] #include "stdafx.h" #include "stdio.h" int main (void) { int a,b,c,r,result; printf("enter a value for a\n"); scanf ("%d", &a); printf("enter a value …

Member Avatar for deceptikon
0
305
Member Avatar for rrreeefff

Hello! I am working on some code for a program that squares,sums and divides 3 numbers: [code=cplus] int num,sq,sumd; int a; int b; int c; printf ("Please enter a positive integer for a/n"); //input scanf ("%d", &a); printf ("Please enter a positive integer for b/n"); //input scanf ("%d", &b); printf …

Member Avatar for ahamed101
0
101
Member Avatar for rrreeefff

Hi I am working on a program that computes the sum of N in increments of 3. I do not have any errors but when you run the program it does not compute correctly for example if you enter 2 for n the sum should be 5 [code=cplusplus] #include "stdafx.h" …

Member Avatar for Amisha_Sharma
0
130
Member Avatar for rrreeefff

I am working on printing a loop statement. I worked on this to try the concept: [code=cplus] #include "stdafx.h" #include "stdio.h" int main() { int times,num; for (times=1; times<3; times++) { for (num=1; num<5; num++) { printf("%d",num); } printf("\n"); } return 0; } [/code] What I need is to print …

Member Avatar for Ancient Dragon
0
95
Member Avatar for rrreeefff

#include "stdafx.h" #include "stdio.h" [code=cplus] void swap (int a, int b); int main (void) { int a,b; printf("enter 2 positive integers"); scanf("%d",&a,&b); swap (a,b); printf("d%d,a,b\n"); } void swap (int a, int b) { int swap (a,b); } [/code] I have one error (20) : error C2078: too many initializers

Member Avatar for Denniz
0
80
Member Avatar for rrreeefff

Hello, I am working on a non-recursive function that computes a to the power n. I have one error which is cpp(23) : error C3861: 'mypower': identifier not found [code=cplusplus] #include "stdafx.h" #include "stdio.h" double power(float a, int n); // function prototype// int main (void) { float a; int n; …

Member Avatar for devnar
0
490
Member Avatar for rrreeefff

Hello, I need to modify the following function to compare with the library power using power (double, double) [code=c] #include "stdafx.h" #include "stdio.h" double mypower(float a, int n); // function prototype// int main (void) { float a; int n; int power; printf("\n enter a value of a\n"); scanf ("%d", &a); …

Member Avatar for Aia
0
73
Member Avatar for rrreeefff

I am trying to write a recursive function that compute a to the n. here is as far as I have gotten as far as code [code=c] #include "stdafx.h" #include "stdio.h" int power (int n); // function prototype// main() { float a; int n; printf("\n enter values of a an …

Member Avatar for rrreeefff
0
150
Member Avatar for gred

I am new to dreamweaver and want to set the colors on a web page in a user friendly mode. I am using the two column hybrid template, and can set the background color with the page properties, but cannot find the way to set the footer, header, side column, …

Member Avatar for tiger86
0
131
Member Avatar for rrreeefff

I created this function and I need help turning this into a recursive function [code=c] #include "stdafx.h" #include "stdio.h" int fact (int n); // function prototype// int main (void) { int n,result; printf("please enter a positive integer"); scanf("%d", &n); result = fact(n); printf("The answer is %d\n", result); return 0; } …

Member Avatar for ahamed101
0
157
Member Avatar for rrreeefff

Hello, I am trying to do a recursive function using fiboncci. I have been working on this and it is not working. #include "stdafx.h" #include "stdio.h" int fib (int n); // function prototype// int main (void) { int num, result; printf ("Please enter a positive integer\n"); scanf ("%d", &num); result= …

Member Avatar for rrreeefff
0
96