Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
C Programes

C Programes

Ratings: (0)|Views: 183|Likes:
Published by njpatel9
C Programes,Basic C learning Programe
C Programes,Basic C learning Programe

More info:

Categories:Types, School Work
Published by: njpatel9 on Mar 05, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

03/05/2011

 
PROGRAME:-1
Write a programe for following output.
Output
:-
Hello world
Input:-
#include<stdio.h>#include<conio.h>void main( ){int a;clrscr( );printf("Hello world");getch( );}
PROGRAME
 
:-2
Write a programe for following output
.
Output
:-
Hello worldHow are you?
Input:-
 
#include<stdio.h>#include<conio.h>void main( ){int a;clrscr( );printf("Hello world");printf("How are you?");getch( );}
PROGRAME:-3
Write a programe for following output.
Output
:-
Hello worldHow are you?
Input:-
 
#include<stdio.h>
 
#include<conio.h>void main( ){int a;clrscr( );printf("Hello world");printf("\nHow are you?");getch( );}
PROGRAME:-4
Write a programe for following outpu
 
t.
Output
:-
Hello world How are you?
Input:-
#include<stdio.h>#include<conio.h>void main( ){clrscr( );printf("Hello world");printf("\tHow are you?");getch( );
 }
PROGRAME:-5
Write a programe for print your address in center of output screen.
Input:-
#include<stdio.h>#include<conio.h>void main( ){clrscr( );printf("\n\t\t\tPatel Ankit");printf("\n\t\t\t12\Sardar Bunglows");printf("\n\t\t\tShivaji chowk, Shahibagh");printf("\n\t\t\tAhmedabad");getch( );}
 
Output:-
Output will be print in centre of screen.
PROGRAME:-6
Write a programe for calculation of addition, sub, multy, div of given
two number.
Input:-
#include<stdio.h>#include<conio.h>void main( ){int a,b,c;float d;clrscr( );printf("Enter first no: ");scanf("%d",&a);printf("Enter second no: ");scanf("%d",&b);c=a+b;printf("\nAddition=%d",c);c=a-b;printf("\nSubstraction=%d",c);c=a*b;printf("\nMultiplication=%d",c);
 
 c=a%b;printf("\nModulow=%d",c);d=a/b;printf("\nDivision=%2.2f",d);getch( );}
Output:-
Enter first no: 50Enter second no: 4Addition=54Substraction=46Multiplication=200Modulow=2Division=12
 
PROGRAME:-7

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->