>>>> TL POINT <<<<
Latest Post
12:27 PM
Internet marketing and business solution
Written By Unknown on Tuesday, July 1, 2014 | 12:27 PM
12:21 AM
Basic C Programming Practice - Practice 35
Written By Unknown on Friday, October 11, 2013 | 12:21 AM
=> Write a program in C to read int value and print float equivalent?
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
int one;
float two;
scanf("%d", &one);
two=(float)one;
printf("%f",two);
getch();
}
Program Analysis :
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
int one;
float two;
scanf("%d", &one);
two=(float)one;
printf("%f",two);
getch();
}
Program Analysis :
12:20 AM
Basic C Programming Practice - Practice 34
=> Write a program in C to read float value and print integer equivalent?
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
float one;
int two;
scanf("%f", &one);
two=(int)one;
printf("%d",two);
getch();
}
Program Analysis :
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
float one;
int two;
scanf("%f", &one);
two=(int)one;
printf("%d",two);
getch();
}
Program Analysis :
12:19 AM
Basic C Programming Practice - Practice 33
=> Write a program in C to print the lower case letters to upper case?
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
char any;
scanf("%c", &any);
printf("%c", any-32);
getch();
}
Program Analysis :
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
char any;
scanf("%c", &any);
printf("%c", any-32);
getch();
}
Program Analysis :
12:18 AM
Basic C Programming Practice - Practice 32
=> Write a program in C to print the upper case letters to lower case?
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
char any;
scanf("%c", &any);
printf("%c", any+32);
getch();
}
Program Analysis :
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
char any;
scanf("%c", &any);
printf("%c", any+32);
getch();
}
Program Analysis :
12:17 AM
Basic C Programming Practice - Practice 31
=> Write a program in C to Arithmetic operations of two double numbers. Print these results in separate lines?
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
double one,two;
scanf("%lf%lf", &one,&two);
printf("%lf\n%lf\n%lf\n%lf",one+two,one-two,one*two,one/two);
getch();
}
Program Analysis :
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
double one,two;
scanf("%lf%lf", &one,&two);
printf("%lf\n%lf\n%lf\n%lf",one+two,one-two,one*two,one/two);
getch();
}
Program Analysis :
12:15 AM
Basic C Programming Practice - Practice 30
=> Write a program in C to Arithmetic operations of two float numbers. Print these results in separate
lines?
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
float one,two;
scanf("%f%f", &one,&two);
printf("%f\n%f\n%f\n%f",one+two,one-two,one*two,one/two);
getch();
}
Program Analysis :
Solution :
#include<stdio.h>
#include<conio.h>
main()
{
float one,two;
scanf("%f%f", &one,&two);
printf("%f\n%f\n%f\n%f",one+two,one-two,one*two,one/two);
getch();
}
Program Analysis :