UrbanPro
true

Take BTech Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

C program for Beginners

P
Parul R.
02/08/2020 0 0

A Program to print 2 integer value. 

#include<stdio.h>

#include<conio.h>

main()

int a,b,add;

a=5;

b=3;

add=a+b;

printf(“ Addition=%d”,&add);

getch();

 

Brief description of above program,

#include: it  includes library function/import predefine libraries.

<stdio.h>:  standard input output header file.

main():  it is first function of C programming. Every C programme must have main() function.

int a,b,add: a,b,add are declared as integer(int) type variables.

add=a+b: this statement sum a and b and store result in add variable.

printf: printf is a function to print output.

getch(): also a function, it is used to return program window to console.

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

Consignment Meaning & Features
Meaning & Features Of Consignment Meaning: Consignment means the transaction of sending goods by one person (called CONSIGNOR) to another (called CONSIGNEE) who is to sell those goods on behalf of...
F

Simple Algorithms - Fibonacci, Finding GCD & Finding LCM.
import java.util.Scanner; //0,1,1,2,3,5,8,13,21,34... //fun(n)=fun(n-1)+fun(n-2) where n>=2 /*fib(9)=fib(8)+fib(7) =fib(7)+fib(6)+fib(6)+fib(5) =fib(6)+fib(5)+fib(5)+fib(4)+fib(5)+fib(4)+fib(4)+fib(3) */ public...

Pointers And References
Are reference and pointers same? No. I have seen this confusion crumbling up among the student from the first day. So better clear out this confusion at thevery beginning. Pointers and reference both...

How to Study and Learn Better: Tips to Students!
Find out where, when and how you learn best: By taking notes? Reading one book at a time? Through all-out effort? Study groups? Organise your time and the place to study according to that. Take breaks. Check...

National level ICT exam- Tanzania-IGCSE board national exam- Grade 9th
A sample question paper of IGCSE board national exam - Tanzania: Candidate’s No……………………………. MINISTRY OF EDUCATION AND...

Looking for BTech Tuition ?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you

BTech Tuition Questions

X

Looking for BTech Tuition Classes?

The best tutors for BTech Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BTech Tuition with the Best Tutors

The best Tutors for BTech Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more