Nikolas
even it if was written right, it would just print "In 80 minutes, Bianca can prepare 1 dishes" "In 80 minutes, Bianca can prepare 2 dishes" "In 80 minutes, Bianca can prepare 3 dishes" "In 80 minutes, Bianca can prepare 4 dishes" "In 80 minutes, Bianca can prepare 5 dishes"
Nikolas
up until 80
Nikolas
you just need to print that once
Nikolas
why is it in a for loop?
Anonymous
like "10 15 20 25" bianca can prepare 4 dishes
Anonymous
wait ill try a different method
Anonymous
is there anyone who can help me?
There was few errors. I have rectified them... https://code.hackerearth.com/0e6c80i?key=39e38bb9187bce2865d04652d4603be5
Ανδρέας 🇮🇹
/runs
Anonymous
/runs
Rekha
Write a program to ask the user the population of three different cities.and find total population of country,average population of each cities?
Rekha
Please solve this program
Rekha
Sorry
Anonymous
is there any html,css,php learning group plz sent link pm
Anonymous
if anyone have plz sent me privately
Rekha
Rekha
This program is right?
Nikolas
why not posting it to a service like pastebin?
Nikolas
This program is right?
shouldn't you tell us? Does it do what it is supposed to?
Anonymous
shouldn't you tell us? Does it do what it is supposed to?
Yup. He is right tho. Tell this group the problem and what should it do. So, they can give you some advice/answer
Ибраги́м
Truly native C++ cross-platform framework for Android and iOS development Article, Comments
Anonymous
😂🤣🤣
Anonymous
🤣🤣🤣
† n06h
Anyone to assist here on how to calculate the area of a circle by the use of C
† n06h
Lang
uncle
when it ask a number for the seccond time, it sets zero to all entries of my array instead of the expected result as oyu will see in the code. pls how can i solve it?
uncle
#include <stdio.h> const int MAX=100; int k=1; //FILL ROW FOWARD void FillRowFoward(int A[][MAX], int T, int L, int R, int K){ for (int i = L; i < R; i++) A[T][i] = K++; k=K; } //FILL COLUMN downward void FillColumnDownward(int A[][MAX], int T, int B, int R, int K){ for (int i = T; i < B; ++i) A[i][R-1] = K++; k=K; } //FILL Row Bacward void FillRowBackward(int A[][MAX], int B, int L, int R, int K){ for (int i = R-1; i >= L; --i) A[B-1][i] = K++; k=K; } //FILL Column Upward void FillColumnUpward(int A[][MAX], int T, int B, int L, int K){ for (int i = B-1; i >= T; --i) A[i][L] = K++; k=K; } //MAIN FUNCTION int main(void){ int N; int TOP=0; int LEFT=0; int array[MAX][MAX]; do{ printf("enter the Row size or press zerro to quit: "); scanf("%d", &N); if(N==0) break; else{ int BOTTOM=N; int RIGHT=N; while(k < N*N){//loop till k isleaa than N*N //call of FILL ROW FOWARD FillRowFoward(array, TOP, LEFT, RIGHT, k); TOP += 1; //call of FILL COLUMN downward FillColumnDownward(array, TOP, BOTTOM, RIGHT, k); RIGHT -=1; // k +=RIGHT; //call of FILL Row Bacward FillRowBackward(array, BOTTOM, LEFT, RIGHT, k); BOTTOM -=1; // k +=BOTTOM; //call of FILL Column Upward FillColumnUpward(array, TOP, BOTTOM, LEFT, k); LEFT +=1; // k +=(BOTTOM -1); } int i,j,Lb; for( Lb=0; Lb<=N; Lb++) printf("----"); printf("\n"); for ( i=0; i<N; i++){ // printf("\nFFFF"); for ( j=0; j<N; j++) if(array[i][j]<10) printf(" %d |", array[i][j]); else printf(" %d |", array[i][j]); printf("\n"); for( Lb=0; Lb<=N; Lb++) printf("----"); printf("\n"); } for(int b=0; b<N; b++) for(int v=0; v<N; v++) array[b][v]=0; }}while(N!=0); return 0; }
uncle
here is the output]
uncle
here is the output]
as you see,,it works only for the first time.... then later gives garbage... i thnk its a problem of memory. but how do i solve it
Joan
Hello
Dima
welcome
Manoj
Is reverse function can be used in java without string builder function
Anonymous
Hello
Hello and welcome and by the way nice dp, Doraemon!
Dima
Is reverse function can be used in java without string builder function
this chat can’t be used for java questions, read the rules
Manoj
Sorry
Anonymous
Hi!
I_Interface
Hi!
Welcome
Joan
...
Joan
Did anyone use NW.js in Raspberry Pi (Raspbian or similar) using this port? github dot com/jalbam/nwjs_rpi
† n06h
Dima
Am a beginner
This is very easy
† n06h
This is very easy
😂 telling me it's easy and helping are two different thing's
Dima
Try it yourself
† n06h
Anonymous
I'm bored, 🙁😖
John
Hi does any one have any experience in smart card technology?
Anonymous
Nope
CM
Am a beginner
Sure its a simple program which need one to try
Anonymous
Do any of u use hackearth?
Dima
Anonymous
Ot? What do u mean
BinaryByter
#ot
† n06h
Sure its a simple program which need one to try
I just don't have any material to study all this
† n06h
That's why am asking
† n06h
For help
Anonymous
For help
Which prog bro? Area of circle?
† n06h
Even if you sent c programming pdf I will appreciate
Anonymous
Should I explain or u want the program?
Anonymous
first declare an integer r or anything. Take the value of r from user using scanf("%d",&r) %d as it is a integer Then take another integer , i.e a. Now as the formula, a=3.14*r*r Then use printf("%d",a) to print
Anonymous
Void main() { int a,r; scanf("%d",&r); a=r*r*3.14; printf("%d",a); }
klimi
klimi
?
Anonymous
Dude do u know dynamic programming
Anonymous
And back tracking?
Dima
#ot
Anonymous
Ok
Anonymous
Anonymous
Anonymous
Can u guys suggest me some way how to reduce the space and time complexity, or make the code more optimised