C in Hindi Language – Sample C Programs

C in Hindi Ki is post me main apko c language ke kuch Sample c Programs ko Kaise Banaye isske baare me bataane jaa raaha hu. Agar apko c language ko suru se padna ho to apko meri pichli post Learn C Programming in Hindi language Ko jarur padhna cahiyee. Jaisa ki Ham jante Hai KI “Language Is The Medium Of Communication” Isi Taraah ham  c language ka use karke Computer ko apne instructions dete hai jinhe wo fallow karta hai Aur instructions dene ke kuch rule hote hai jinhe “Syntax” kaha jaata hai..Caliye jyada time Na barbad karte hue main apko C in Hindi ki iss post me main apko c ke Kuch programs ke baare me baata hu.

                                 C in Hindi Language – Sample C  Programs

 

1. “Hello World” Program

#include<stdio.h>

#include<conio.h>

main()

{

clrscr();

printf(“Hello World”);

getch();

}

 

2. “Add” program

#include<stdio.h>

#include<conio.h

main()

{

int a,b,c;

a=20;

b=28;

c=a+b;

printf(“Totle %d” ,c);

getch();

}

iss program ko run karne per result “48” show hoga.

 

                                         C in Hindi Language – Sample C  Programs

3. “Add karne Wala Calculator”

#include<stdio.h>

#include<conio.h>

main()

{

int a,b,c;

clrscr();

Printf(“Enter First Number”);

scanf(“%d” ,&a);                                                           ( “scanf” command ka use ham a me koi value ko store

printf(“Enter Second Number”);                                       karne ke liye use kiya jaata hai)

scanf(“%d” ,&b);

c=a+b;

printf(“Totle =%d” ,c);

getch();

}

iss program ko Run karne per apko Pahle “a” and “b” ki value puchega and usko add karke result provide kar dega. issi tarah aap c=a-b karne per “a,b” ko ghata dega aur c=a*b se multiply kar dega…

 

4. “Simple Interest” Program

#include<stdio.h>

#include<conio.h>

main()

{

int a,b,c,d;

clrscr();

printf(“Enter Value Of P = “);

scanf(“%d” ,&a);

printf(“Enter Value Of R =”);

scanf(“%d” ,&b);

printf(“Enter Value Of T =”);

scanf(“%d” ,&c);

d=(a*b*c)/100

printf(“Totle =%d” , d);

getch();

}

Jaisa ki apne dekha d= simple interest ka formula, isi tarah aap other formula ko likh kar uska result paa sakte hai..

Issi tarah aap maths ke alaag – alaag formulas se apna new program ko bana sakte hai. C in Hindi Language  ki iss post me mainne apko 4 sample c programs ke baare me bataya hai, aap bhi kosis kare aur new programs ko baanaye ager koi problem ho to aap mujse comment se puch sakte hai…

 

 

Comments

  1. Reply

  2. Reply

    • By Shubham

      Reply

  3. By Gaurav

    Reply

    • By Shubham

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Show Buttons
Hide Buttons