Getting started here, questions about strategy, etiquitte, etc

I am very new to this site and I am currently studying in B.tech 2 nd year CSE …I wish I could be a good programmer…that’s all I want…

cout<<“Hellpo, World!”;

Hi,I am a student pursuing mechanics but love to code and wanna be a professional programmer.

1 Like

‘i’ is a variable in which an integer 9 is stored

You have written your question very nicely :slight_smile: So I don’t think you would have any etiquette problem. Just try your best to solve before asking. And you can not ask for help about a live problem.

i know programming but practice is very less

#include<stdio.h>
void main()
{
int n,s,out;
scanf("%d",&n)
for(i=0;i<n;i++)
{
s=&ar[i];
out=ar[i];
}

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf(“enter the value “);
scanf(”%d%d”,&a,&b);
c=a+b;
printf("%d",c);
getch();
}

#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, sum;
printf(“enter the value of a and b”); scanf("%d%d",&a,&b);
sum=a+b;
printf(“sum=%d”,sum);
getch();
}

#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, sum;
printf(“enter the value of a and b”); scanf("%d%d",&a,&b);
sum=a+b;
printf(“sum=%d”,sum);
getch();
}

enter the value of a and b
10
20
sum=30

enter the value of a and b
10
20
sum=30

Hello Everyone, I am new to Codechef but I want to share something with you.
Everything in life has some reason,some goal, some intention behind doing it.
Before you start, remember why are you doing it…
Coding is because you want to interact with the machine so you need to learn machine’s language as you are more intelligent than machine and machine cannot learn your language.
Try writing the expected input and expected output on a piece of paper before you code as logic is equally important as learning the language.
Best of luck to all of you

1 Like

The meaning of if (I==1) is that in this,i is any value which is been calculated should be equal to 1.and the meaning of if(I&1) is that the answer must include both the values in between I and 1. Moreover the first one is used to compare equality while that of the other one.

  1. try for optimised solution

This is a right answer for two value pulse

include<stdio.h>
include<conio.h>
void main() { int a, b, sum; printf(“enter the value of a and b”); scanf("%d%d",&a,&b); sum=a+b; printf(“sum=%d”,sum); getch(); }

enter the value a and b Sum=

Excited to join this course.

hello iam new at codechef. i dont know where to start please guideme guys. how to solve question…